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

52 lines
No EOL
832 B
ReStructuredText

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