File size: 587 Bytes
21bc372 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from Data import Data
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, 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_photo(
msg.chat.id,
photo="https://randydev-meta-ai.hf.space/image/share/image.jpg",
caption=Data.START.format(
msg.from_user.mention,
mention
),
reply_markup=InlineKeyboardMarkup(Data.buttons)
) |