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

Method set_state

telebot/storage/base_storage.py:24–37  ·  view source on GitHub ↗

Set state for a particular user. ! Note that you should create a record if it does not exist, and if a record with state already exists, you need to update a record.

(self, chat_id, user_id, state,
        business_connection_id=None,
        message_thread_id=None,
        bot_id=None,
    )

Source from the content-addressed store, hash-verified

22 raise NotImplementedError
23
24 def set_state(self, chat_id, user_id, state,
25 business_connection_id=None,
26 message_thread_id=None,
27 bot_id=None,
28 ):
29 """
30 Set state for a particular user.
31
32 ! Note that you should create a
33 record if it does not exist, and
34 if a record with state already exists,
35 you need to update a record.
36 """
37 raise NotImplementedError
38
39 def delete_state(self, chat_id, user_id,
40 business_connection_id=None,

Callers 2

setMethod · 0.45
setMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected