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
there is something called "return", do evaluation or use NewMessage(func=lambda) parameter to condition the states needed for trigger the callback
Читать полностью…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
Читать полностью…Using as much as I know
Shall I the paste the excerpt of the code here?
groups are useless for Telethon. it doesn't restrict duplicate handlers and calls all
Читать полностью…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
in the conversation api wait_event, can i use 2 events of any of either occured then return me?
Читать полностью…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}")
Idk, The first step is searching here, but most people skip this crucial step.
Читать полностью…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)
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
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 ❤️
Читать полностью…https://tl.telethon.dev/methods/messages/send_reaction.html
Читать полностью…