From 88e48deb1caaa991005f4c5ed39780ea14494c51 Mon Sep 17 00:00:00 2001 From: Captain Ezio Date: Fri, 25 Mar 2022 22:33:29 +0530 Subject: [PATCH] Update cmd.py --- Commands/cmd.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Commands/cmd.py b/Commands/cmd.py index ced033e..72063e3 100644 --- a/Commands/cmd.py +++ b/Commands/cmd.py @@ -1,6 +1,5 @@ -from pyrogram import InlineKeyboardButton, InlineKeyboardMarkup,ParseMode +from telegram import InlineKeyboardButton, InlineKeyboardMarkup,ParseMode from config import Config - #Inline Keyboard Button keyboard = [ [ @@ -10,7 +9,6 @@ InlineKeyboardButton("How To Create A Bot Like Me",url="https://telegra.ph/Captain-03-24") ] ] - #The Keyboard On Up👆 reply_markup = InlineKeyboardMarkup(keyboard) @@ -18,6 +16,7 @@ def startMessage(update,context): msg = Config.START_TEXT.format(update.message.from_user.full_name,update.message.chat.id) try: + update.message.reply_text(Config.START_TEXT.format(update.message.from_user.full_name,update.message.chat.id),reply_markup=reply_markup, update.message.reply_photo(photo = "https://te.legra.ph/file/dc6e0b631938b66e38626.jpg", caption = msg,reply_markup=reply_markup, parse_mode=ParseMode.MARKDOWN) except Exception as e: @@ -27,7 +26,7 @@ def startMessage(update,context): def helpMessage(update,context): msg = Config.HELP_TEXT try: + update.message.reply_text(Config.HELP_TEXT,reply_markup=reply_markup,parse_mode=ParseMode.MARKDOWN) update.message.reply_text(photo = "https://te.legra.ph/file/785e57bcd78ac4634b6d5.jpg" ,reply_markup=reply_markup,parse_mode=ParseMode.MARKDOWN) except Exception as e: update.message.reply_text(e) -