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 can i find information about this info to learn?
Читать полностью…Other than the fact that telethon does not provide a local address to connect to like the local bot API does
Читать полностью…TypeError: A local IPv6 address must only be used with use_ipv6=True
.
he wants to use local address instead of telegram bot api one
Читать полностью…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.
https://tl.telethon.dev/methods/premium/apply_boost.html
Читать полностью…sorry i don't need my data to be in the fbi agent hands
Читать полностью…this group is about to reach 1M messages then Telegram will start delete old messages one by one which contains very important information and tutorials so every message is expensive and offtopic messages makes losing old messages easier and creating new ones harder
Читать полностью…Telegram decides the limits. For new accounts it's probably to prevent spam. There's nothing the library can do about it.
Читать полностью…there is no information on what was asked about because telethon is not a server
Читать полностью…What causes telethon to have issues with account and bot DC mismatch ? and how can this be fixed, what do I have to change to make it work properly as intended ?
Читать полностью…Is it still not possible to do a minimized blockquote?
Читать полностью…https://docs.telethon.dev/en/stable/concepts/botapi-vs-mtproto.html
Читать полностью…There is no local server API, telethon functions like tdlib and the local bot API server
Читать полностью…somehow you came to the rightish conclusion. and it's not about ipv4/6
Читать полностью…not worked. i think telethon protocol is completely different
Читать полностью…Thank you man❤️
Your so good
Thank you for all your help on this group🌹
whatsapp saves chat history data in your device but tg save in cloud same but big different bro
Читать полностью…Dude Telethon's normal text parser & unparsers haven't been custom premium emojis implemented,
You should define some yourself ( lots are available right here, just search )
Mine's :
from telethon import hintsЧитать полностью…
from telethon.extensions import markdown
from telethon.tl.types import (
MessageEntityBlockquote,
MessageEntityUnderline,
MessageEntitySpoiler,
MessageEntityTextUrl,
)
class IsaMarkdown:#XxX - Custom Markdown Parser & Unparser
markdown.DEFAULT_DELIMITERS.update({'^^': MessageEntityBlockquote,'%%': lambda *a,**k: MessageEntityBlockquote(*a,**k,collapsed=True),'__': MessageEntityUnderline,'||': MessageEntitySpoiler})
@staticmethod
def parse(text : str) -> tuple:
text,entities = markdown.parse(text)
for i,e in enumerate(entities):
if ((isinstance(e,MessageEntityTextUrl)) and e.url.startswith('tg://emoji?id=')):
entities[i] = MessageEntityCustomEmoji(e.offset,e.length,int(e.url.split('=')[1]))
return text,entities
@staticmethod
def unparse(text : str,entities : hints.ListLike) -> str:
for i,e in enumerate(entities or []):
if isinstance(e,MessageEntityCustomEmoji):
entities[i] = MessageEntityTextUrl(e.offset,e.length,f'tg://emoji?id={e.document_id}')
return markdown.unparse(text,entities)
client.parse_mode = IsaMarkdown()
#Usage example for emojis is like '[Kos](tg://emoji?id=10000000000)'
I tried but it's not working
https://pastebin.com/raw/64Bf9Ubj
sure you use that account who is not in any chat session in the code?
Читать полностью…