randydev's picture
Upload 5 files
1400465 verified
raw
history blame
457 Bytes
from Data import Data
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, Message
# Start Message
@Client.on_message(filters.private & filters.incoming & filters.command("start"))
async def start(bot: Client, msg: Message):
user = await bot.get_me()
mention = user.mention
await bot.send_message(
msg.chat.id,
Data.START.format(msg.from_user.mention, mention),
reply_markup=InlineKeyboardMarkup(Data.buttons)
)