Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pyrogram.raw.functions.channels import GetFullChannel
- from pyrogram.raw.functions.phone import EditGroupCallTitle
- from pyrogram.raw.functions.phone import GetGroupCall
- async def get_input_call(chat_id):
- return (
- await app.invoke(GetFullChannel(channel=await app.resolve_peer(chat_id)))
- ).full_chat.call
- async def get_call_title(chat_id):
- input_call = await get_input_call(chat_id)
- if not input_call: return
- return (await app.invoke(GetGroupCall(call=input_call, limit=0))).call.title
- async def edit_call_title(chat_id, title):
- input_call = await get_input_call(chat_id)
- if not input_call: return
- return await app.invoke(EditGroupCallTitle(call=input_call, title=title))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement