10 lines
605 B
Python
10 lines
605 B
Python
|
from app import app
|
||
|
from pyrogram.types import CallbackQuery
|
||
|
from pyrogram.client import Client
|
||
|
from pyrogram import filters
|
||
|
|
||
|
# Callback rule ================================================================================================================
|
||
|
@app.on_callback_query(filters.regex("sid_[\s\S]*"))
|
||
|
async def callback_query_rule(app: Client, clb: CallbackQuery):
|
||
|
await clb.answer(url=f'https://t.me/{(await app.get_me()).username}?start={clb.data.split("_")[1]}')
|
||
|
# ==============================================================================================================================
|