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

Method reset_data

telebot/states/asyncio/context.py:96–111  ·  view source on GitHub ↗

Reset data for current user. State will not be changed.

(self)

Source from the content-addressed store, hash-verified

94 )
95
96 async def reset_data(self) -> bool:
97 """
98 Reset data for current user.
99 State will not be changed.
100 """
101
102 chat_id, user_id, business_connection_id, bot_id, message_thread_id = (
103 resolve_context(self.message, self.bot.bot_id)
104 )
105 return await self.bot.reset_data(
106 chat_id=chat_id,
107 user_id=user_id,
108 business_connection_id=business_connection_id,
109 bot_id=bot_id,
110 message_thread_id=message_thread_id,
111 )
112
113 def data(self) -> dict:
114 """

Callers

nothing calls this directly

Calls 1

resolve_contextFunction · 0.90

Tested by

no test coverage detected