Relative Content

Tag Archive for telegram-botpython-telegram-botpyrogram

“How to use messages.Report with Pyrogram RAW API? Getting ‘can’t

from pyrogram.raw.functions.messages import Report from pyrogram.raw.functions.channels import GetChannels from pyrogram.raw.types import InputPeerChannel, InputReportReasonSpam from pyrogram.raw import functions, types @app.on_message(filters.command(‘start’) & filters.private) async def start_bot(cleint, mesage): print(‘start command’) await mesage.reply_text(‘hello welcome to my bot’, reply_markup=buttons.start()) chat = await app.get_chat(‘example’) peer = await app.resolve_peer(chat.id) result = await app.invoke(GetChannels(id=[peer])) for channel in result.chats: channel_id =channel.id access_hash =channel.access_hash peer […]

“How to use messages.Report with Pyrogram RAW API? Getting ‘can’t

from pyrogram.raw.functions.messages import Report from pyrogram.raw.functions.channels import GetChannels from pyrogram.raw.types import InputPeerChannel, InputReportReasonSpam from pyrogram.raw import functions, types @app.on_message(filters.command(‘start’) & filters.private) async def start_bot(cleint, mesage): print(‘start command’) await mesage.reply_text(‘hello welcome to my bot’, reply_markup=buttons.start()) chat = await app.get_chat(‘example’) peer = await app.resolve_peer(chat.id) result = await app.invoke(GetChannels(id=[peer])) for channel in result.chats: channel_id =channel.id access_hash =channel.access_hash peer […]

“How to use messages.Report with Pyrogram RAW API? Getting ‘can’t

from pyrogram.raw.functions.messages import Report from pyrogram.raw.functions.channels import GetChannels from pyrogram.raw.types import InputPeerChannel, InputReportReasonSpam from pyrogram.raw import functions, types @app.on_message(filters.command(‘start’) & filters.private) async def start_bot(cleint, mesage): print(‘start command’) await mesage.reply_text(‘hello welcome to my bot’, reply_markup=buttons.start()) chat = await app.get_chat(‘example’) peer = await app.resolve_peer(chat.id) result = await app.invoke(GetChannels(id=[peer])) for channel in result.chats: channel_id =channel.id access_hash =channel.access_hash peer […]

“How to use messages.Report with Pyrogram RAW API? Getting ‘can’t

from pyrogram.raw.functions.messages import Report from pyrogram.raw.functions.channels import GetChannels from pyrogram.raw.types import InputPeerChannel, InputReportReasonSpam from pyrogram.raw import functions, types @app.on_message(filters.command(‘start’) & filters.private) async def start_bot(cleint, mesage): print(‘start command’) await mesage.reply_text(‘hello welcome to my bot’, reply_markup=buttons.start()) chat = await app.get_chat(‘example’) peer = await app.resolve_peer(chat.id) result = await app.invoke(GetChannels(id=[peer])) for channel in result.chats: channel_id =channel.id access_hash =channel.access_hash peer […]

“How to use messages.Report with Pyrogram RAW API? Getting ‘can’t

from pyrogram.raw.functions.messages import Report from pyrogram.raw.functions.channels import GetChannels from pyrogram.raw.types import InputPeerChannel, InputReportReasonSpam from pyrogram.raw import functions, types @app.on_message(filters.command(‘start’) & filters.private) async def start_bot(cleint, mesage): print(‘start command’) await mesage.reply_text(‘hello welcome to my bot’, reply_markup=buttons.start()) chat = await app.get_chat(‘example’) peer = await app.resolve_peer(chat.id) result = await app.invoke(GetChannels(id=[peer])) for channel in result.chats: channel_id =channel.id access_hash =channel.access_hash peer […]

“How to use messages.Report with Pyrogram RAW API? Getting ‘can’t

from pyrogram.raw.functions.messages import Report from pyrogram.raw.functions.channels import GetChannels from pyrogram.raw.types import InputPeerChannel, InputReportReasonSpam from pyrogram.raw import functions, types @app.on_message(filters.command(‘start’) & filters.private) async def start_bot(cleint, mesage): print(‘start command’) await mesage.reply_text(‘hello welcome to my bot’, reply_markup=buttons.start()) chat = await app.get_chat(‘example’) peer = await app.resolve_peer(chat.id) result = await app.invoke(GetChannels(id=[peer])) for channel in result.chats: channel_id =channel.id access_hash =channel.access_hash peer […]