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
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.
Читать полностью…how to send contact, location and other things from inline query
Читать полностью…server doesn't support uselessness, you get every vote of a poll you sent, you store and count them yourself, votes can get spammy, a message object in each is a waste
Читать полностью…it is useless. assign every poll_id to a chat, msg_id beforehand once sent, only fetch the message for closing using get_messages(chat, ids=msg_id)
Читать полностью…Will the speed increase if pass the received_updates=False
?
Bcs i want just connect to client and check client status (banned or healthy )
instead of using .to_json() use .to_dict()
then you can reverse the object
but since it json.dumps the data, maybe not work idk 🤔 eval?
Читать полностью…Hello everyone, has anyone done an emulation of account registration based on the telethon library?
Читать полностью…where can i find the api page that contains all the article builder types for inline query? for example we have article, photo, video, etc. where can i find the full list?
ive only found article and photo here, couldnt find anything else anywhere on the docs:
https://docs.telethon.dev/en/stable/modules/events.html#telethon.events.common.EventBuilder
Is there no other way to do this so that after the user selects each option, an update is returned and the complete message can be received?
Читать полностью…UpdateMessagePollVote(
poll_id=5922510866095277005,
peer=PeerUser(
user_id=5985708937
),
options=[
b'1',
],
qts=0
)
How can I find out the number of participants in the survey after each option is selected by users, and how do I end the survey?
Читать полностью…In official telegram apps we can't mute private chats & bots separately, both of them are in one private chats category? Is it server side problem?
Читать полностью…Executed Code 👑
await event.reply('[print("hello world")](pre:javascript)')Читать полностью…
Hello, how does the bot initiate a chat with a user, when the user makes a join request to a group?
Читать полностью…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.
Guys I have Id and access hash of users but I couldn't add them to my channel!!
What should I do?
there's no builtin reverse operation, because some things like dates lose the original type
Читать полностью…maybe this could work:
tlJson = {}Читать полностью…
for subclass in TLObject.__subclasses__():
if subclass.__class__.__name__ == tlJson['_']:
kwargs = tlJson
kwargs.pop('_', None)
foundObject = subclass(**kwargs)