MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / get_member

Method get_member

src/telegram/_chat.py:377–405  ·  view source on GitHub ↗

Shortcut for:: await bot.get_chat_member(update.effective_chat.id, *args, **kwargs) For the documentation of the arguments, please see :meth:`telegram.Bot.get_chat_member`. Returns: :class:`telegram.ChatMember`

(
        self,
        user_id: int,
        *,
        read_timeout: ODVInput[float] = DEFAULT_NONE,
        write_timeout: ODVInput[float] = DEFAULT_NONE,
        connect_timeout: ODVInput[float] = DEFAULT_NONE,
        pool_timeout: ODVInput[float] = DEFAULT_NONE,
        api_kwargs: JSONDict | None = None,
    )

Source from the content-addressed store, hash-verified

375 )
376
377 async def get_member(
378 self,
379 user_id: int,
380 *,
381 read_timeout: ODVInput[float] = DEFAULT_NONE,
382 write_timeout: ODVInput[float] = DEFAULT_NONE,
383 connect_timeout: ODVInput[float] = DEFAULT_NONE,
384 pool_timeout: ODVInput[float] = DEFAULT_NONE,
385 api_kwargs: JSONDict | None = None,
386 ) -> "ChatMember":
387 """Shortcut for::
388
389 await bot.get_chat_member(update.effective_chat.id, *args, **kwargs)
390
391 For the documentation of the arguments, please see :meth:`telegram.Bot.get_chat_member`.
392
393 Returns:
394 :class:`telegram.ChatMember`
395
396 """
397 return await self.get_bot().get_chat_member(
398 chat_id=self.id,
399 user_id=user_id,
400 read_timeout=read_timeout,
401 write_timeout=write_timeout,
402 connect_timeout=connect_timeout,
403 pool_timeout=pool_timeout,
404 api_kwargs=api_kwargs,
405 )
406
407 async def ban_member(
408 self,

Callers 15

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 2

get_botMethod · 0.80
get_chat_memberMethod · 0.45

Tested by 1

test_get_memberMethod · 0.64