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

well idk all ik is this
/channel/TelethonChat/689512

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

Telethon Chat

yea when telethon got updated the site got updated too automatically by api.tl file right?

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

Telethon Chat

whenever lonami pushes code to Git

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

Telethon Chat

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.

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

Telethon Chat

TL Reference for account.deletePasskey

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

Telethon Chat

i used events.NewMessage event with user account

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

Telethon Chat

^exec async
if event.sender.bot:
print("Bot")

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

Telethon Chat

Can I also use the message events I capture using events.NewMessage?

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

Telethon Chat

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

My log analysis revealed that even if two requests were received within a short period, the API query would still be called twice.

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

Telethon Chat

Documentation for is_bot

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

Telethon Chat

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.

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

Telethon Chat

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.

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

Telethon Chat

Maybe I remember wrong before.

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

Telethon Chat

you have to call it to get users who dmed you and haven't been cached by events

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

Telethon Chat

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.

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

Telethon Chat

idk if its 100% automatic but I know its on 216 and telethon is on 216 and git is on 220

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

Telethon Chat

its none of those, its when telethon is released

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

Telethon Chat

Are new updates manually updated by admin at tl.telethon.dev .
Or they are somehow automatically generated as soon as telegram releases

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

Telethon Chat

wait till lonami add those funcs.

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

Telethon Chat

I will try to get it directly.

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

Telethon Chat

Executed Code 👑

if event.sender.bot:
print("Bot")

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

Telethon Chat

I'll give it a try. Thanks for your reply.

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

Telethon Chat

if event.sender.bot:
print("Bot")

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

Telethon Chat

I'm logged into a user account, and my goal is to determine whether the messages I receive were sent by a bot.

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

Telethon Chat

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?

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

Telethon Chat

that fixed my issue, thanks 🙂

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

Telethon Chat

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?

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

Telethon Chat

Even users who have already interacted with the user must use get_dialogs before they can initiate a conversation using their user ID.

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

Telethon Chat

The premise is that the other party has not interacted in the current session file.

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

Telethon Chat

try calling the user entity from get_dialogs entities

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