Spaces:
Sleeping
Sleeping
File size: 877 Bytes
6b1e8b6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | from pyrogram import filters
from devgagan import app
from devgagan.core import script
from devgagan.core.func import subscribe
from config import OWNER_ID
from pyrogram.types import CallbackQuery, InlineKeyboardMarkup, InlineKeyboardButton
# ------------------- Start-Buttons ------------------- #
buttons = InlineKeyboardMarkup(
[
[InlineKeyboardButton("Join Channel", url="https://t.me/AgainBots")],
[InlineKeyboardButton("Buy Premium", url="https://t.me/AgainOwner")]
]
)
@app.on_message(filters.command("start"))
async def start(_, message):
join = await subscribe(_, message)
if join == 1:
return
await message.reply_photo(photo="https://graph.org/file/4e80dc2f4f6f2ddadb4d2.jpg",
caption=script.START_TXT.format(message.from_user.mention),
reply_markup=buttons)
|