Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from iamgojoof6eyes/base
Browse files Browse the repository at this point in the history
Update cmd.py
  • Loading branch information
iamgojoof6eyes authored Mar 25, 2022
2 parents ab259e3 + 88e48de commit 259d162
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Commands/cmd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from pyrogram import InlineKeyboardButton, InlineKeyboardMarkup,ParseMode
from telegram import InlineKeyboardButton, InlineKeyboardMarkup,ParseMode
from config import Config

#Inline Keyboard Button
keyboard = [
[
Expand All @@ -10,14 +9,14 @@
InlineKeyboardButton("How To Create A Bot Like Me",url="https://telegra.ph/Captain-03-24")
]
]

#The Keyboard On Up👆
reply_markup = InlineKeyboardMarkup(keyboard)

#Send Start Message
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:
Expand All @@ -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)

0 comments on commit 259d162

Please sign in to comment.