mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Move packages
This commit is contained in:
parent
70088cdd65
commit
4f12b6792f
109 changed files with 364 additions and 384 deletions
|
|
@ -14,10 +14,11 @@ async def command_start_handler(message: Message) -> None:
|
|||
"""
|
||||
This handler receive messages with `/start` command
|
||||
"""
|
||||
# Most of event objects has an aliases for API methods to be called in event context
|
||||
# Most event objects has an aliases for API methods to be called in event context
|
||||
# For example if you want to answer to incoming message you can use `message.answer(...)` alias
|
||||
# and the target chat will be passed to :ref:`aiogram.methods.send_message.SendMessage` method automatically
|
||||
# or call API method directly via Bot instance: `bot.send_message(chat_id=message.chat.id, ...)`
|
||||
# and the target chat will be passed to :ref:`aiogram.methods.send_message.SendMessage`
|
||||
# method automatically or call API method directly via
|
||||
# Bot instance: `bot.send_message(chat_id=message.chat.id, ...)`
|
||||
await message.answer(f"Hello, <b>{message.from_user.full_name}!</b>")
|
||||
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ async def echo_handler(message: types.Message) -> None:
|
|||
"""
|
||||
Handler will forward received message back to the sender
|
||||
|
||||
By default message handler will handle all message types (like text, photo, sticker and etc.)
|
||||
By default, message handler will handle all message types (like text, photo, sticker and etc.)
|
||||
"""
|
||||
try:
|
||||
# Send copy of the received message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue