mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
* feature: add aliases for InaccessibleMessage type * add changelog * fix changelog * remove methods that may not be accessible for the InaccessibleMessage type, add tests * apply black isort * update docs with InaccessibleMessage aliases
57 lines
1.2 KiB
ReStructuredText
57 lines
1.2 KiB
ReStructuredText
#########
|
|
sendVenue
|
|
#########
|
|
|
|
Returns: :obj:`Message`
|
|
|
|
.. automodule:: aiogram.methods.send_venue
|
|
:members:
|
|
:member-order: bysource
|
|
:undoc-members: True
|
|
:exclude-members: model_config,model_fields
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: Message = await bot.send_venue(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods.send_venue import SendVenue`
|
|
- alias: :code:`from aiogram.methods import SendVenue`
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
result: Message = await bot(SendVenue(...))
|
|
|
|
As reply into Webhook in handler
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
return SendVenue(...)
|
|
|
|
|
|
As shortcut from received object
|
|
--------------------------------
|
|
|
|
- :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_venue`
|
|
- :meth:`aiogram.types.chat_join_request.ChatJoinRequest.answer_venue_pm`
|
|
- :meth:`aiogram.types.chat_member_updated.ChatMemberUpdated.answer_venue`
|
|
- :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.answer_venue`
|
|
- :meth:`aiogram.types.inaccessible_message.InaccessibleMessage.reply_venue`
|
|
- :meth:`aiogram.types.message.Message.answer_venue`
|
|
- :meth:`aiogram.types.message.Message.reply_venue`
|