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

Method delete

telebot/states/asyncio/context.py:77–94  ·  view source on GitHub ↗

Deletes state and data for current user. .. warning:: This method deletes state and associated data for current user.

(self)

Source from the content-addressed store, hash-verified

75 )
76
77 async def delete(self) -> bool:
78 """
79 Deletes state and data for current user.
80
81 .. warning::
82
83 This method deletes state and associated data for current user.
84 """
85 chat_id, user_id, business_connection_id, bot_id, message_thread_id = (
86 resolve_context(self.message, self.bot.bot_id)
87 )
88 return await self.bot.delete_state(
89 chat_id=chat_id,
90 user_id=user_id,
91 business_connection_id=business_connection_id,
92 bot_id=bot_id,
93 message_thread_id=message_thread_id,
94 )
95
96 async def reset_data(self) -> bool:
97 """

Callers

nothing calls this directly

Calls 2

resolve_contextFunction · 0.90
delete_stateMethod · 0.45

Tested by

no test coverage detected