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
well idk all ik is this
/channel/TelethonChat/689512
yea when telethon got updated the site got updated too automatically by api.tl file right?
Читать полностью…
This issue has already been fixed, but it's not yet available in PyPi. You can upgrade now with pip3 install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip.
i used events.NewMessage event with user account
Читать полностью…
Can I also use the message events I capture using events.NewMessage?
Читать полностью…
async def _match_bot_message(event):
sender = await event.get_sender()
return isinstance(sender, User) and sender.bot if sender is not None else False
Telethon is free software. That means using it is a right: you are free to use it for absolutely any purpose whatsoever. However, help and support with using it is a privilege. If you misbehave or want to do bad things, despite possibly having good intentions, nobody is obligated to help you.
Читать полностью…
This issue has already been fixed, but it's not yet available in PyPi. You can upgrade now with pip3 install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip.
you have to call it to get users who dmed you and haven't been cached by events
Читать полностью…
I remember that I used to call it only once after creating the session file, but now I have to call it once after starting the code.
Читать полностью…
idk if its 100% automatic but I know its on 216 and telethon is on 216 and git is on 220
Читать полностью…
its none of those, its when telethon is released
Читать полностью…
Are new updates manually updated by admin at tl.telethon.dev .
Or they are somehow automatically generated as soon as telegram releases
Executed Code 👑
if event.sender.bot:Читать полностью…
print("Bot")
I'm logged into a user account, and my goal is to determine whether the messages I receive were sent by a bot.
Читать полностью…
I want to determine if the sender is a bot when I receive a message. I'm using await event.get_sender() and checking isinstance(sender, User) and sender.bot with the condition if sender is not None else False. Will this be called multiple times if I receive multiple messages in a short period, or are there other methods to simply determine if the sender is a bot?
Hi
Im trying to invite and admin a bot in my channel
i used edit_admin and EditAdminRequest but i could not give the bot "ban_users=False", is there any reason that its always enabled?
Even users who have already interacted with the user must use get_dialogs before they can initiate a conversation using their user ID.
The premise is that the other party has not interacted in the current session file.
Читать полностью…
try calling the user entity from get_dialogs entities
Читать полностью…