Answer the question
In order to leave comments, you need to log in
Get jnson user id on callback_quey?
There is this piece of code
class MyTeleBot(TeleBot):
def get_updates(self, *args, **kwargs):
json_updates = apihelper.get_updates(self.token, *args, **kwargs)
ret = []
for ju in json_updates:
if ju['message']['from']['id'] in banned_users:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question