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
The people are kind. Sorry that it's not really on the topic of Telethon. If someone has worked with opentele, please help us figure out how to convert tdata to client. I can't do anything for the second day (((
Читать полностью…doest Message.pin() also work ? IDE doesn't highlight this as existing method but in docs there is said it is a shorthand for the method
Читать полностью…what does your complaining have to do with telethon
Читать полностью…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.
^exec py
members = ['disk' ,'nick' 'aayco', 'calfy']
new_members = ['nefis', 'tony']
for member in new_members:
members.append(member)
print(members)
you can see the docs of asyncio.wait()
tasks = [Читать полностью…
asyncio.create_task(conv.get_response(...)),
asyncio.create_task(conv.wait_event(...))
]
done, _ = await asyncio.wait(tasks, return_when=asyncio.FIRST_COMPLETED)
event = done.pop().result()
sorry, but i stop using my own fsm in telethon as i have to write much more than usual
the conversation api is great, can you tell me how i use 2 events to wait at a time?
but your conversation api is pretty much good but i cant understand how to use 2 events to wait at a time
Читать полностью…it will, and hints aren't done fully in telethon to TLObjects, explicitly hint it /channel/TelethonChat/547805
Читать полностью…Theyre loyal to their rules when they’re not at hurt otherwise youll see how fast they change their behavior. (E.g: eu laws and durov)
Читать полностью…See Errors
https://tl.telethon.dev/methods/messages/edit_message.html
Executed Code 📱
members = ['disk' ,'nick' 'aayco', 'calfy']
new_members = ['nefis', 'tony']
for member in new_members:
members.append(member)
print(members)
['disk', 'nickaayco', 'calfy', 'nefis', 'tony']Читать полностью…
why i hear no response from bot upon sending correct capital
Читать полностью…like i ask a question in a bot with inline markup
now there will be 2 possibilities, 1 is click the button or press cancel keyboard button
i can wait for only 1 now using wait_event
cant use 2 NewMessage & CallbackQuery
the conditions become your state in a way
there is also raise events.StopPropagation inside a handler. that will stop the event from triggering further handlers of same event type
this will be a extra for my code, as i already use a state fsm then why need for extra func and return conditions
Читать полностью…