MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / get

Method get

telebot/states/asyncio/context.py:58–75  ·  view source on GitHub ↗

Get current state for current user. :return: Current state name. :rtype: str

(self)

Source from the content-addressed store, hash-verified

56 )
57
58 async def get(self) -> str:
59 """
60 Get current state for current user.
61
62 :return: Current state name.
63 :rtype: str
64 """
65
66 chat_id, user_id, business_connection_id, bot_id, message_thread_id = (
67 resolve_context(self.message, self.bot.bot_id)
68 )
69 return await self.bot.get_state(
70 chat_id=chat_id,
71 user_id=user_id,
72 business_connection_id=business_connection_id,
73 bot_id=bot_id,
74 message_thread_id=message_thread_id,
75 )
76
77 async def delete(self) -> bool:
78 """

Callers

nothing calls this directly

Calls 2

resolve_contextFunction · 0.90
get_stateMethod · 0.45

Tested by

no test coverage detected