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
How to send Sticker upcoming sticker message To Any Chat
Читать полностью…Hi! I use a Telethon session for login and need to skip authentication if the session is not valid. Is it possible? My code gets stuck at 'Please enter your phone (or bot token):', but I need it to skip that and just use another session file. Thank you
Читать полностью…await client.forward_messages('username_or_chat_id', response)
What is for copy_message
elif msg.startswith('.q'):
if event.text != '.q':
user_id = event.text.replace('.q', '').strip()
sent_message = await event.reply(user_id)
async for message in client.iter_messages('@QuotLyBot', limit=1):
if message.id != sent_message.id:
if message.sticker is not None:
await client.send_file(event.chat_id, message.sticker)
I tried this in pyrogram and the mention was created but not in telethon.
Читать полностью…results = [
builder.article(
title='...',
description='...',
text=f'[example](https://example.com)\n[{u.first_name}](tg://user?id={u.id})',
),
]
Why is the mention not occurring?
permissions = await client.get_permissions(i, 'me')
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.
is the text formatted at all or is the markdown formatting [] included?
Читать полностью…is .get_permissions(group_id, user_id)
rate limited or can i call it everytime a user interact with my bot?
Hey, that's not how you ask a question! If you want helpful advice (or any response at all) read this first and then ask again. If you have the time, How To Ask Questions The Smart Way is another wonderful resource worth reading.
Читать полностью…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.
is it possible to get an message media file id from a channel for a telegram bot without downloading it ?
Читать полностью…If a message object has a media like this is there a way to download it later? maybe using id or access hash?
media=MessageMediaDocument(nopremium=False, spoiler=False, document=Document(id=9456782550134034989, access_hash=4576189796268849053, file_reference=b'\x01\x00\x03\x11\xc7ekAp\xa2\x06\xc6%Z\xc6\x1c\x95k\xf9A5\xc6\xd8\xa7\xa8', date=datetime.datetime(2023, 11, 29, 6, 21, 53, tzinfo=datetime.timezone.utc), mime_type='audio/ogg')Читать полностью…
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.
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.