telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6095

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

Subscribe to a channel

Telethon Chat

and also that's python related things not telethon

Читать полностью…

Telethon Chat

I think the --force-reinstall should be added in the doc here
Without it, if you have already Telethon installed It changes nothing since It thinks you have already the last version:
Requirement already satisfied: Telethon==1.40.0

Читать полностью…

Telethon Chat

buttons=Button.clear()

Читать полностью…

Telethon Chat

You wanna remove buttons ?

Читать полностью…

Telethon Chat

disallow receiving old updates

Читать полностью…

Telethon Chat

In your go program try to skip old message

if time.Since(message.Timestamp) > 2 * time.Minute {
log.Println("Skipping stale message:", message)
return
}

Читать полностью…

Telethon Chat

I lost 25% of my asset due to this incredible delay

Читать полностью…

Telethon Chat

I need the document where is it?

Читать полностью…

Telethon Chat

Excuse me, is this a telethon?

Читать полностью…

Telethon Chat

yeah thank u, i just edit of my own groups

Читать полностью…

Telethon Chat

problem solved, sorry for my bad

Читать полностью…

Telethon Chat

Executed Code 👑

from telethon.sync import TelegramClient
from telethon import functions, types
import asyncio

chat = '/channel/+M0pO4YjsHYlmOTVk'

try:
result = await client(functions.messages.EditChatAboutRequest(
peer=chat,
about="hello world"
))
print(result)
await asyncio.sleep(3)
await client.send_message(chat, f"<i>✅ [done] berhasil mengubah desc group to <b>hello </b></i>", parse_mode="html")
except BaseException as e:
print(f"#error : {e}")

💙Output:
True

Читать полностью…

Telethon Chat

yes, i have, but still error, idk why

Читать полностью…

Telethon Chat

getting error😢

EVAL (in 49.179ms)

from telethon.sync import TelegramClient
from telethon import functions, types
import asyncio

chat = event.chat.id

try:
result = await client(functions.messages.EditChatAboutRequest(
peer=chat,
about="hello world"
))
print(result)
await asyncio.sleep(3)
await client.send_message(chat, f"<i>✅ [done] berhasil mengubah desc group to <b>hello </b></i>", parse_mode="html")
except BaseException as e:
print(f"#error : {e}")




OUTPUT:
#error : About text has not changed (caused by EditChatAboutRequest)

Читать полностью…

Telethon Chat

https://github.com/LonamiWebs/Telethon/blob/v1/telethon_examples%2Fpayment.py

Читать полностью…

Telethon Chat

that's not general case to be added

Читать полностью…

Telethon Chat

ah, but the event is send to another function the Button object isn't available there

Читать полностью…

Telethon Chat

yep,, after the button is used

Читать полностью…

Telethon Chat

I can simply use event.edit(buttons=None) right?

Читать полностью…

Telethon Chat

Why telethon sends messages that are more than 10 hours old I don't really understand

Читать полностью…

Telethon Chat

https://github.com/LonamiWebs/Telethon/blob/v1/telethon_examples%2Fpayment.py

Читать полностью…

Telethon Chat

This usually happens after the Python script that is the source of the messages (the Telethon client) has been offline for an extended period of time or has been restarted. When it reconnects to Telegram, it reads all the historical messages it missed while offline and forwards them to your Go program as new messages. Your Go program receives this old news from 11 hours ago, does not perform a timeliness check, and directly executes a trade, when market conditions have long since turned upside down, resulting in a loss.

holy shit {"timestamp":"2025-07-10T08:47:56.804+0800","msg":"[JAPAN-HTTP] MMSnews (Delay: 39863.804s, MsgID: 1312):

Читать полностью…

Telethon Chat

Is it in the telethon doc?

Читать полностью…

Telethon Chat

Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon, since most problems have already been fixed in newer versions.

Читать полностью…

Telethon Chat

you can use it if you got the event in chat you are admin with change group info permission

Читать полностью…

Telethon Chat

how about if use chat = event.chat.id ?

Читать полностью…

Telethon Chat

^exec async
from telethon.sync import TelegramClient
from telethon import functions, types
import asyncio

chat = '/channel/+M0pO4YjsHYlmOTVk'

try:
result = await client(functions.messages.EditChatAboutRequest(
peer=chat,
about="hello world"
))
print(result)
await asyncio.sleep(3)
await client.send_message(chat, f"<i>✅ [done] berhasil mengubah desc group to <b>hello </b></i>", parse_mode="html")
except BaseException as e:
print(f"#error : {e}")

Читать полностью…

Telethon Chat

you must put text different than current one

Читать полностью…

Telethon Chat

EditChatAboutRequest

Читать полностью…

Telethon Chat

hey buddy, what is the name of the function to change the group description?

Читать полностью…
Subscribe to a channel