Telethon icon indicating copy to clipboard operation
Telethon copied to clipboard

Pure Python 3 MTProto API Telegram client library, for bots too!

Results 156 Telethon issues
Sort by recently updated
recently updated
newest added

### Code that causes the issue ```python // work with ended session async with client: await client.connect() me = await client.get_me() ``` ### Expected behavior Error was thrown if you...

### Code that causes the issue `await bot.send_message(chat_id, message=message, link_preview=False)` Failed message: " گندم را دزدیدند صدای اعتراض هابلند شد، نان بین مردم پخش کردند اعتراض هاخاموش شد، این جماعت...

### Code that causes the issue ```python ... if message.media: path = "" try: print(message) save = await self.client.get_entity(-4222209239) path = await self.client.download_media(message) await self.client.send_file(save, path, caption=f"Save: {user.first_name}") os.remove(path) except...

### Code that causes the issue ``` @bot.on(events.Raw(UpdateBotInlineSend)) async def inlinequery_callback(event): await bot(EditInlineBotMessageRequest( id=event.msg_id, message='text', no_webpage=True, media=None, reply_markup=None, entities=None )) ``` ### Expected behavior It should work every time. ###...

### Code that causes the issue `client.iter_download(file = message, limit = 1, offset = 983040, request_size = 131072)` ### Expected behavior iterate for 1 chunk containing the 131072 bytes after...

### Code that causes the issue message = await self.client.send_message(entity=int(chat_id), message=message_text) ### Expected behavior none ### Actual behavior Memory overflow, memory exceeds normal value. ### Traceback ```log 2024-05-23 05:27:04,785 INFO...