aiogram/docs2/source/api/methods/send_venue.rst
2020-06-15 02:22:24 +03:00

52 lines
No EOL
863 B
ReStructuredText

#########
sendVenue
#########
Use this method to send information about a venue. On success, the sent Message is returned.
Returns: :obj:`Message`
.. automodule:: aiogram.api.methods.send_venue
:members:
Usage
=====
As bot method
-------------
.. code-block::
result: Message = await bot.send_venue(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods import SendVenue`
- :code:`from aiogram.api.methods import SendVenue`
- :code:`from aiogram.api.methods.send_venue import SendVenue`
In handlers with current bot
----------------------------
.. code-block::
result: Message = await SendVenue(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block::
result: Message = await bot(SendVenue(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block::
return SendVenue(...)