Official Telethon's chat! Rules: • Speak English • Stay on topic (questions about Telethon) • Be respectful • Don't ask to ask • Spam-related uses lead to ban • Read https://docs.telethon.dev before asking things here Read more about us @TelethonUpdates
explain the 'didn't work' part
the first two requests will work
third one won't. TogglePreHistoryHidden must be called on the new Channel object id, you can find it in 'migrated' object, not the older Chat id
await client.start()Читать полностью…
result = await client(functions.messages.CreateChatRequest(
users=['maths_war_bot'],
title='my awesome title'
))
for u in result.updates.updates:
if isinstance(u,UpdateChatParticipants):
chat_id2 = u.participants.chat_id
group = client.get_entity(chat_id)
migrated = client(functions.messages.MigrateChatRequest(
chat_id=chat_id2
))
result2 = client(functions.channels.TogglePreHistoryHiddenRequest(
channel="-100"+str(chat_id2),
enabled=False
))
Is there a limit to how many times I can call this method per minute?
Читать полностью…Which method should I use to get the top 3 users who have reacted with the "stars" reaction to a message in a Telegram channel?
Читать полностью…having in this format the info of a forum topic: -1002728995147/120 , which will be the way to get the name of the forum topic with id 120?
Читать полностью…migrated = client(functions.messages.MigrateChatRequest(Читать полностью…
chat_id="-100"+str(chat_id2)
))
The error is that it doesn't convert into supergroup but displays no error on the idle
Читать полностью…The code is this, and my goal is to create a group and making it supergroup
Читать полностью…Can we make it using get entity? Not after it is created
Читать полностью…how to get how many messages exist in the chat of type MessageMediaDocument without iter all the messages one by one?
Читать полностью…tl.telethon.dev/methods/auth/request_password_recovery.html or tl.telethon.dev/methods/account/reset_password.html
Читать полностью…When a new message is sent in a specific channel, my new message handler function receives a NewMessage event, then some time later, my edited message handler function receives a MessageEdited event for the same message, but when looking at the channel, the message doesn't show that the message is edited. Anyone know why this is happpening?
Читать полностью…You don't need proxies for valid usecases which is what is discussed in this chat. if you're using 100 accounts, try and find out whatever you should use
Читать полностью…