Comments (4)
Can you provide more information?
from aiogram.
Need more information. I copy and paste your example and this code is works for me
Can you provide exception traceback?
from aiogram.
Thanks
I found something error
But i fix that
And I have other questions
How can I handle stickers or files?
from aiogram.
Use content types
Examples:
Handle stickers
@dp.message_handler(content_types=ContentType.STICKER)
Handle photos
@dp.message_handler(content_types=ContentType.PHOTO)
Handle video and video notes
@dp.message_handler(content_types=ContentTypes.VIDEO & ContentTypes.VIDEO_NOTE)
In this example used ContentTypes instead of ContentType
from aiogram.
Related Issues (20)
- Add function get_value to FSMContext HOT 1
- ModuleNotFoundError: No module named 'aiogram' HOT 1
- Failed deserealization on get_sticker_set method
- Update pydantic 2.6.4 HOT 1
- hey im trying to find out who reacted to my posts in my telegram channel via my aiogram bot. but @dp.message_reaction() only seems to work for groups and in private message
- Error serializing to JSON: PydanticSerializationError: Unable to serialize unknown type: <class 'aiogram.client.default.Default'> HOT 2
- message.get_url() in chat with topics -> wrong url HOT 2
- /start doesn't work HOT 5
- Mixed-Format Sticker Packs HOT 1
- Invalid webhook response given with handle_in_background=False
- types.Message.edit_caption first positional argument is not caption but inline_message_id HOT 2
- aiogram\utils\formatting.py (as_section) HOT 2
- How to use custom emoji in aiogram message formatting HOT 1
- Can't use `message.answer` within `asyncio.gather` HOT 3
- Get user from `chat_boost` with source `ChatBoostSourcePremium` HOT 2
- Message class bug HOT 4
- wrong TypeHint for ReplyKeyboardBuilder button
- Aiogram doesn't work properly if one field of a `StatesGroup` is a `default_field` HOT 5
- Typo in `__slots__` field of class `MagicData` HOT 1
- business_opening_hours is not shown in chat information.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiogram.