mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Add type hints to all public methods in the client
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
import typing
|
||||
|
||||
from .users import UserMethods
|
||||
from .. import hints
|
||||
from ..tl import types, functions, custom
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from .telegramclient import TelegramClient
|
||||
|
||||
|
||||
class BotMethods(UserMethods):
|
||||
async def inline_query(self, bot, query, *, offset=None, geo_point=None):
|
||||
async def inline_query(
|
||||
self: 'TelegramClient',
|
||||
bot: hints.EntityLike,
|
||||
query: str,
|
||||
*,
|
||||
offset: str = None,
|
||||
geo_point: types.GeoPoint = None) -> custom.InlineResults:
|
||||
"""
|
||||
Makes the given inline query to the specified bot
|
||||
i.e. ``@vote My New Poll`` would be as follows:
|
||||
|
Reference in New Issue
Block a user