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 def test(self): self.api_id = self.api_id_text.GetValue() self.api_hash = self.api_hash_text.GetValue() checked_sessions = [self.list_ctrl.GetItemText(i, 1) for i in range(self.list_ctrl.GetItemCount()) if self.list_ctrl.IsItemChecked(i)] self.loop = asyncio.new_event_loop() asyncio.set_event_loop(self.loop) self.tasks =...

**Checklist** * [X ] The error is in the library's code, and not in my own. * [ X] I have searched for this issue before posting it and there...

### Code that causes the issue # receiving new msg, when it has media, just download... # event_new_msg path = await tg_client.download_media(msg, file=path_stored) tg_client.add_event_handler(event_new_msg, events.NewMessage(func=filter_new_msg)) tg_client.run_until_disconnected() ### Expected behavior successfully...

### Code that causes the issue @client.on(events.Album) def first(e): print(f"album events FIRST {event=}") @client.on(events.Album) def second(e): print(f"album events SECOND {event=}") ### Expected behavior Process album once per handler. ### Actual...

**Checklist** * [ ] The error is in the library's code, and not in my own. * [x] I have searched for this issue before posting it and there isn't...

Allow `ButtonCallback` event to handle `UpdateInlineBotCallbackQuery`, add `chat` property to it

### Code that causes the issue ```python await bot.send_file(user_id, file=[image_url]) ``` ### Expected behavior I was expecting that this will send file normal as ```python await bot.send_file(user_id, file=image_url) ``` But...

### Describe your suggested feature `Channel`'s attributes `broadcast`, `megagroup` and `gigagroup` are mutually exclusive. You can convert `Chat` to `Channel` with `megagroup` flag set to `True` by [`messages.MigrateChatRequest`](https://tl.telethon.dev/methods/messages/migrate_chat.html). You can...

enhancement

### Code that causes the issue import io from gtts import gTTS img_byte_arr = io.BytesIO() tts = gTTS(text=text, lang="ru", lang_check=True) tts.write_to_fp(img_byte_arr) img_byte_arr.name = "name.ogg" img_byte_arr.seek(0) await client.send_file(entity=chat_id, caption="", file=img_byte_arr, voice_note=False,...

### Description I open page https://tl.telethon.dev/methods/messages/index.html I click on "here" link in "Click here to view the requests that you can use as a bot." I get here https://tl.telethon.dev/methods/messages/botindex.html The...