telethon Questions

7

Solved

Apologies if it is a silly question. I am trying telethon for the first time and it fails to synchronize with my telegram API. I get an IP address when I type this code: But I get this message...
Benzine asked 25/1, 2019 at 16:33

2

Solved

I'm working on telethon download_media and _download_document methods for downloading video from telegram. My code is something like this: def callback(update): Channel_Entity = client.get_entit...
Narcoanalysis asked 5/12, 2017 at 18:7

4

Solved

I am using Telethon and Python 3.6xx Been able to retreive message from groups, no problem but when it comes to channels I am stuck. dialogs = client(get_dialogs) for chat in dialogs.chats: get...
Stotinka asked 21/6, 2018 at 18:58

4

Hi can't figure out how to solve this problem, so any help will be really appreciated. I'm subscribed to a private channel. This channel has no username and I don't have the invite link (the admin ...
Activist asked 11/7, 2020 at 11:9

3

Solved

I'm working on telethon download_media and _download_document methods for downloading media from telegram. My code is something like this: from telethon import TelegramClient api_id = 12345 api_ha...
Try asked 8/2, 2021 at 11:5

2

I need to read the messages of some public channels in the telegram application, I want to store telegram channle text in a text file. I want use python. I try with telethon but it's so complicated...
Regan asked 3/3, 2020 at 12:48

3

I try really hard to understand howto use Telegram api with telethon. I have some Channels in Telegram, where i want to delete older Messages. Using inputpeerchannel() i need channel_id (No Problem...
Contraceptive asked 13/10, 2017 at 19:7

3

Solved

I need to test my telegram bot. To do this I need to create client user to ask my bot. I found telethon library which can do it. First I wrote a code example to ensure that authorisation and connec...
Pagel asked 15/7, 2022 at 16:7

3

Solved

How to call async method which get event loop in main thread inside another async method in Quart? t.py from telethon import TelegramClient, functions, types client2 = TelegramClient(sn, api_id,...
Kennithkennon asked 20/6, 2019 at 15:21

3

Solved

The "telethon" library has a "get messages" method, with which you can get a message and information about it, including comments. But can you get reactions? https://core.telegr...
Saarinen asked 30/3, 2022 at 15:29

3

Solved

While running my first code using Telethon library, it is asking for a bot token. This is the actual code: from telethon import TelegramClient, events, sync api_id = 1234567 api_hash = 'xxxxxxxxx...
Barram asked 10/11, 2019 at 16:41

4

Solved

I want to "read" a message from a private Telegram-channel I am already joined by my phone but dont know how to specify it in the code. I already wrote some code where I create a Telegram Client...
Stoltzfus asked 4/9, 2019 at 0:41

2

I use telethon for sending messages to telegram using python script. I did not find anything in telethon to search for groups and channels I like used to search on telegram app. Please see iamge. H...
Spikenard asked 26/5, 2020 at 7:3

2

Solved

how to get message that posted today using TELETHON I'm using the below code date_of_post = datetime.datetime(2019, 12, 24) with TelegramClient(name, api_id, api_hash) as client: for message in...
Contrapuntal asked 24/12, 2019 at 16:0

1

I'm trying to forward a message with a group of photos. But they are redirected by separate messages in destination channel. How can I redirect with one message? @client.on(events.NewMessage(incomi...
Ruthy asked 11/3, 2022 at 14:31

1

I am getting the error ValueError: Could not find the input entity for . Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.. This error comes from clie...
Johnnyjumpup asked 18/11, 2019 at 9:49

6

Solved

I'm new to telethon and python. I have installed telethon in python3 and I want to get all members of a telegram channel or a group . I was searching a lot in the internet and found below code . An...
Soapbark asked 7/12, 2017 at 15:47

1

Solved

I want to reuse existing session file (the phonenumber.session) file, But I want to change it default path (working directory) to another directory, like '/data/se.session' There is any option to d...
Morphine asked 19/5, 2021 at 15:7

2

i trying to add users by usernames to my channel. I am using python 3.6 telethon library and pythonanywhere server: api_hash = 'b7**' phone = '+7***' client = TelegramClient('new_ses', api_id, api...
Teresitateressa asked 1/1, 2018 at 15:54

2

Solved

this is info my channel : dialogs, entities = client.get_dialogs(1) entity = entities[0] print(entity) (channel (ID: 0xa14dca52) = (creator=True, kicked=None, left=None, editor=None, moderator=Non...
Wisp asked 4/7, 2017 at 13:59

1

Solved

Hi I have to process several objects queued 5 at time. I have a queue of 5 items. Sometimes process fails and an exception occurs: async def worker(nam): while True: queue_item = await queue.get()...
Hanshaw asked 6/1, 2021 at 21:43

1

Solved

I'm figuring out how to return a list[] in asyncio I know asyncio.gather could help me but there are so many ways I'm now confused. How Do I return value from main() ? Thank async def wait_until(dt...
Leonor asked 29/12, 2020 at 22:19

1

Solved

I want to make a script that shows the channels that i joined and then leave all of it with this example: from telethon.tl.functions.channels import LeaveChannelRequest await client(LeaveChannelReq...
Cycloplegia asked 29/8, 2020 at 12:15

2

Solved

I have client.get_messages(dialog.entity) but its return just messages without "read/unread mark"... So, how can I get unread new messages only? Anybody know? 😥
Vienne asked 21/8, 2020 at 8:50

4

Solved

How do I save a number in my contacts in telethon Python? from telethon import TelegramClient from telethon.tl.functions.contacts import GetContactsRequest from telethon.tl.types import InputPeerUs...
Zina asked 16/6, 2017 at 20:21

© 2022 - 2024 — McMap. All rights reserved.