Skip to content

Commit

Permalink
Правки
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed May 9, 2024
1 parent a1f96f9 commit b010193
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/bot/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,12 +946,15 @@ def guide_cmd(message: Message):

# bot.send_message(message.chat.id, mess, reply_markup=markup)

mess = "Гайд по LiveBot 🍃"

mess = "Гайд по LiveBot 🍃"
markup = InlineKeyboardMarkup()
markup.add(
InlineKeyboardButton("Читать", web_app=WebAppInfo("https://hamletsargsyan.github.io/livebot/guide/"))
)
if message.chat.type == "private":
markup.add(
InlineKeyboardButton("Читать", web_app=WebAppInfo("https://hamletsargsyan.github.io/livebot/guide/"))
)
else:
mess += "\n\nhttps://hamletsargsyan.github.io/livebot/"


bot.send_message(message.chat.id, mess, reply_markup=markup)
Expand Down

0 comments on commit b010193

Please sign in to comment.