new voice bot
This commit is contained in:
6
main.py
6
main.py
@@ -71,7 +71,7 @@ def telegram_bot():
|
||||
if BotDB.user_exists(user_id):
|
||||
is_need_sticker = BotDB.get_info_about_stickers(user_id=message.from_user.id)
|
||||
if is_need_sticker == 0:
|
||||
item5 = types.KeyboardButton("🤪Хочу ваши стикеры")
|
||||
item5 = types.KeyboardButton("🤪Хочу стикеры")
|
||||
BotDB.update_info_about_stickers(user_id=message.from_user.id)
|
||||
markup.add(item1, item2, item3, item4, item5)
|
||||
else:
|
||||
@@ -80,7 +80,7 @@ def telegram_bot():
|
||||
BotDB.add_new_user_in_db(user_id, first_name, full_name, username, is_bot, language_code, date_added, date_changed)
|
||||
is_need_sticker = BotDB.get_info_about_stickers(user_id=message.from_user.id)
|
||||
if is_need_sticker == 0:
|
||||
item5 = types.KeyboardButton("🤪Хочу ваши стикеры")
|
||||
item5 = types.KeyboardButton("🤪Хочу стикеры")
|
||||
BotDB.update_info_about_stickers(user_id=message.from_user.id)
|
||||
markup.add(item1, item2, item3, item4, item5)
|
||||
else:
|
||||
@@ -217,7 +217,7 @@ def telegram_bot():
|
||||
bot.forward_message(chat_id=GROUP_FOR_LOGS,
|
||||
from_chat_id=message.chat.id,
|
||||
message_id=message.message_id)
|
||||
elif message.text == "🤪Хочу ваши стикеры":
|
||||
elif message.text == "🤪Хочу стикеры":
|
||||
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
|
||||
item1 = types.KeyboardButton("📢Предложить свой пост")
|
||||
item2 = types.KeyboardButton("📩Связаться с админами")
|
||||
|
||||
Reference in New Issue
Block a user