1,311 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
105
views
How to Approve Channel Join Requests Using Telethon?
I'm trying to approve join requests for my private Telegram channel using Telethon. When a user opens a join link to a private channel, Telegram sends their request to the admin panel, where it can be ...
0
votes
1
answer
171
views
TELETHON Server sent a very old message with ID
I am working on a Python script. To call a specific function, I need to read the last message from a Telegram group chat once an hour.
The first time I run the script, I don’t get any errors. However, ...
0
votes
1
answer
53
views
ImportAuthorizationRequest function does not authorize the client, although it does not raise an error
logger.info("Creating new session using invisible login method...")
config = await original_client(functions.help.GetConfigRequest())
dc_id = config.dc_options[0].id # Выберите подходящий ...
2
votes
0
answers
52
views
telethon always gives 0 unread messages count from all private chats
The code from "X" keeps showing wrong amount of unread messages. I've added a "result" that actually shows a real count of unread messages from Dena account.
with TelegramClient(...
0
votes
0
answers
99
views
Telethon download custom emoji as .tgs files
I'm using Telethon 1.40.0 and python 3.13 to try and download the .tgs file from a CustomEmoji
example code:
@client.on(events.NewMessage(chats=accepted_chats))
async def handler(event):
id1 = ...
0
votes
1
answer
95
views
Telethon: Telegram Client online but event callback not run
Python version: 3.13.2
Telethon version: 1.40.0
OS: MacOS 15.5
I am using Telethon and Python, but run into the issue of my event callbacks not running but unable to find out why. My code below:
from ...
0
votes
2
answers
201
views
Is there a way to get the topic(thread) ID from a Message object in Telethon?
I am trying to get all messages from a supergroup in Telegram with every message's sender name and topic name in a text file using telethon, but I can't find how to get the topic ID from a Message ...
1
vote
1
answer
514
views
Eror Sending Telegram Gift: RPCError 400: PAYMENT_REQUIRED (caused by TransferStarGiftRequest)
I'm writing a function that takes as input the tg session (client), to_user (InputPeer) and gift (the gift we are sending) and sends the corresponding gift to the user to_user from the client account
...
0
votes
0
answers
96
views
How to monitor new users joining a Telegram channel using Telegram API?
I'm trying to track new users joining a Telegram channel (not a group) using the python-telegram-bot library (v20.x). My bot is an admin in the channel, but it doesn't detect new_chat_members events.
...
0
votes
0
answers
34
views
Telethon add users to a group by sending a csv file
I'm a beginner in Telethon , and I wanna know that Telethon in Python can be used to add users to a telegram group (the public one) which I'm admin there by using a csv file ?
0
votes
0
answers
128
views
Telethon session not authorized with docker container
I have a python script within a docker container. I mount a folder with .session files as a volume to the container.
When I connect to telegram locally, with jupyter, it works perfectly fine:
messages ...
0
votes
0
answers
82
views
SendMultiMediaRequest fails silently when sending multiple files [Python/Telethon]
I'm trying to use the SendMultiMediaRequest function from the Telethon library to send a Telegram message that includes several images and some text.
However, the request doesn't work as expected — no ...
-1
votes
1
answer
108
views
How to prevent Telegram accounts (e.g. from Myanmar) from being deleted immediately when logging in via Telethon
I'm using Telethon to log into Telegram accounts and save their sessions. However, when I try to log in with accounts from Myanmar or other sensitive countries, the accounts get instantly deleted ...
0
votes
0
answers
76
views
How to detect when I react to a message using Telethon?
I'm trying to detect when I react to a message using Telethon.
I tried using UpdateMessageReactions inside events.Raw, but it only triggers when someone else reacts to my messages — and only if I've ...
0
votes
0
answers
50
views
How can I get user's message and put it into a variable in bot Telethon?
I'm making telegram bot using Telethon and I want bot to request users's name (not username or first_name; it's like nickname which user can make by himself). And then bot whill use this name.
For ...