bot = telebot.TeleBot('MYTOKEN',parse_mode='HTML')
class UpdateBot(APIView):
def post(self,request):
json_string = request.body.decode("UTF-8")
update = telebot.types.Update.de_json(json_string)
bot.process_new_updates([update])
return Response({'code': 200})
@bot.message_handler(commands=['startgame'])
def get_user_info(message):
print(
message.chat.id)