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

Method reset_data

telebot/states/sync/context.py:91–104  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

89 )
90
91 def reset_data(self) -> bool:
92 """
93 Reset data for current user.
94 State will not be changed.
95 """
96
97 chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(self.message, self.bot.bot_id)
98 return self.bot.reset_data(
99 chat_id=chat_id,
100 user_id=user_id,
101 business_connection_id=business_connection_id,
102 bot_id=bot_id,
103 message_thread_id=message_thread_id
104 )
105
106 def data(self) -> dict:
107 """

Callers

nothing calls this directly

Calls 1

resolve_contextFunction · 0.90

Tested by

no test coverage detected