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 i = 0 async for user in client.iter_participants(dialog): if not user.bot: DATA.update( { i:{ 'first_name': user.first_name, 'last_name': user.last_name, 'username': user.username, 'phone': user.phone, 'access_hash': user.access_hash,...

Please change input argument in file: `/telethon/client/chats.py", line 1279` **Code that causes the issue** ```python if helpers._entity_type(entity) == helpers._EntityType.CHANNEL: participant = await self(_tl.fn.channels.GetParticipant( entity, user )) return _custom.ParticipantPermissions(participant.participant, False) elif...

Fatal error handling updates (this is a bug in Telethon, please report it) Traceback (most recent call last): File "C:\Users\Samm\AppData\Local\Programs\Python\Python37\lib\site-packages\telethon\client\updates.py", line 359, in _update_loop deadline - asyncio.get_running_loop().time() File "C:\Users\Samm\AppData\Local\Programs\Python\Python37\lib\asyncio\tasks.py", line...

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

Hi, We are using this library to control user interactions with our Telegram bot. Usually, we have no problems with Telegram. Still, lately, we get at night a vast count...

if make a link t.me/ t.me/+91xxxxxxxxx then Official client can Resolve it to Actual user but telethon cant to same ValueError: Cannot find any entity corresponding to "+91xxxxxxxxxx" also telegramX...

**Code that causes the issue** ```python channel = self._client(functions.channels.CreateChannelRequest(title='test', about='')) channel_id = channel.to_dict()["chats"][0]["id"] channel_hash = channel.to_dict()["chats"][0]["access_hash"] self._channel = tl.types.InputChannel(channel_id, channel_hash) self._client.send_message(self._channel, "test") # works fine self._client(functions.channels.DeleteHistoryRequest(self._channel, max_id=0)) # error ```...

I'm scraping Telegram data with Telethon, and it appears that iter_messages() on a channel maxes out at 4125 requests regardless of sleep timer. When using verbose logging, it completes successfully,...

Formerly, Telegram simply ignored 0-length `MessageEntity`, but several days before, Telegram has silently changed its server-side behavior to throw an `RPCError 400: ENTITY_BOUNDS_INVALID`. However, the Markdown and HTML parsers of...

When I am trying to fetch the replies for a message via `client().iter_messages(channel, reply_to=msg_id)` , for some messages, i get the replies , but for some , it get the...