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

there is something called "return", do evaluation or use NewMessage(func=lambda) parameter to condition the states needed for trigger the callback

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

Telethon Chat

but if i make my own fsm with a {} and many NewMessage handlers, later when i check it calls every of them continuously, if there would be a group then all calls can be avoided as different group handlers wont call

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

Telethon Chat

Using as much as I know
Shall I the paste the excerpt of the code here?

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

Telethon Chat

groups are useless for Telethon. it doesn't restrict duplicate handlers and calls all

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

Telethon Chat

If I make a list
Players = []
How can I print the list of current players .list if it appends one players each time someone sends .join

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

Telethon Chat

how can be this in conversation.wait_event

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

Telethon Chat

in the conversation api wait_event, can i use 2 events of any of either occured then return me?

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

Telethon Chat

not it should be event.message.id?

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

Telethon Chat

Use the SendReactionRequest method to react with a emoji

@client.on(events.NewMessage())
async def react_with_heart(event):
try:
await client(functions.messages.SendReactionRequest(
peer=event.chat_id,
msg_id=event.id,
reaction=[types.ReactionEmoji(
emoticon='❤️'
)]
))
print("Reacted with ❤️ to a message.")
except Exception as e:
print(f"Error reacting to message: {e}")

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

Telethon Chat

Documentation for get_messages

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

Telethon Chat

Idk, The first step is searching here, but most people skip this crucial step.

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

Telethon Chat

thx for info, i didn't notice that sorry😅

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

Telethon Chat

bruh you tryna help every time but you have a low knowleges. I knew for sure these methods exist but forgot how they call.

(thx to this guy @disk6969 , may be it is durov himself)

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

Telethon Chat

no need to convert to super group?

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

Telethon Chat

TL Reference for EditPhoto

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

Telethon Chat

i mean it works like first to last, the first handler dont check later state so it immedietely execute, until my main call

so those earlier calls are useless in my fsm

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

Telethon Chat

🗿🗿

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

Telethon Chat

use your Python knowledge

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

Telethon Chat

use your asyncio knowledge

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

Telethon Chat

there is no group in event handlers like in pyrogram, so i cant make different handler of the same type same filter, i wish groups for event handler will come later ❤️

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

Telethon Chat

/channel/TelethonChat/613557

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

Telethon Chat

same thing, less typing

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

Telethon Chat

😀

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

Telethon Chat

https://tl.telethon.dev/methods/messages/send_reaction.html

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

Telethon Chat

how to make bot react messages ?

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

Telethon Chat

Np in learning from helping people

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

Telethon Chat

🤣_

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

Telethon Chat

CreateChannel makes super group

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

Telethon Chat

or maybe you are right

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

Telethon Chat

TL Reference for channels.UpdateUsername

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