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
and also that's python related things not telethon
Читать полностью…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
In your go program try to skip old message
if time.Since(message.Timestamp) > 2 * time.Minute {Читать полностью…
log.Println("Skipping stale message:", message)
return
}
I lost 25% of my asset due to this incredible delay
Читать полностью…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}")
TrueЧитать полностью…
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}")
#error : About text has not changed (caused by EditChatAboutRequest)Читать полностью…
https://github.com/LonamiWebs/Telethon/blob/v1/telethon_examples%2Fpayment.py
Читать полностью…ah, but the event is send to another function the Button object isn't available there
Читать полностью…Why telethon sends messages that are more than 10 hours old I don't really understand
Читать полностью…https://github.com/LonamiWebs/Telethon/blob/v1/telethon_examples%2Fpayment.py
Читать полностью…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):
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.
you can use it if you got the event in chat you are admin with change group info permission
Читать полностью…^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}")
hey buddy, what is the name of the function to change the group description?
Читать полностью…