def text_echo(bot, update):
chat_id = update.message.chat_id
mess = update.message.text
for hi in greetings:
if len(mess) >= len(hi) and mess.lower()[:len(hi)] == hi:
if update.message.from_user.id == id.MY_ID:
sticker = el_stickers[random.randint(0, len(el_stickers) - 1)]
bot.sendMessage(chat_id, text='??????????, ????????? ' + evil_em)
bot.sendSticker(chat_id, sticker)
else:
sticker = stickers[random.randint(0, len(stickers) - 1)]
bot.sendMessage(chat_id, text='??? ??????, ' + update.message.from_user.first_name)
bot.sendSticker(chat_id, sticker)
break
if "?? ???" in mess.lower() or "?? ???" in mess.lower():
sticker = "BQADBQADDAEAAukKyANFGtSvd3H9ngI"
bot.sendSticker(chat_id, sticker)
评论列表
文章目录