GF
Size: a a a
GF
АГ
KA
KA
EN
J🎈
from telebot import TeleBotОбратите внимание на threaded=False
from telebot.types import Update
import os
TOKEN = os.environ["teletoken"]
ADMIN_ID = os.environ["admin_id"]
bot = TeleBot(TOKEN, threaded=False)
@bot.message_handler(commands=['start'])
def react_to_start (message):
bot.send_message(ADMIN_ID, 'Command processed!')
def lambda_handler(event, context):
''' Lambda Handler (webhook via api gateway) '''
update = Update.de_json(event["body"])
bot.process_new_updates([update])
return {
'statusCode': 200
}
ЮЧ
KA
EN
EN
KA
EN
EN
K0
EM
K0
EM
EM
s
ЮЧ