telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6095

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

Subscribe to a channel

Telethon Chat

@Voiro

Читать полностью…

Telethon Chat

how can i find information about this info to learn?

Читать полностью…

Telethon Chat

/channel/TelethonChat/649336

Читать полностью…

Telethon Chat

I'll take this silence as a no^^'

Читать полностью…

Telethon Chat

ohh its different. correct

Читать полностью…

Telethon Chat

Other than the fact that telethon does not provide a local address to connect to like the local bot API does

Читать полностью…

Telethon Chat

using local server api

Читать полностью…

Telethon Chat

TypeError: A local IPv6 address must only be used with use_ipv6=True.

Читать полностью…

Telethon Chat

he wants to use local address instead of telegram bot api one

Читать полностью…

Telethon Chat

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.

Читать полностью…

Telethon Chat

https://tl.telethon.dev/methods/premium/apply_boost.html

Читать полностью…

Telethon Chat

sorry i don't need my data to be in the fbi agent hands

Читать полностью…

Telethon Chat

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

Читать полностью…

Telethon Chat

https://pastebin.com/8SHGSZTg

Читать полностью…

Telethon Chat

Telegram decides the limits. For new accounts it's probably to prevent spam. There's nothing the library can do about it.

Читать полностью…

Telethon Chat

there is no information on what was asked about because telethon is not a server

Читать полностью…

Telethon Chat

Yea, I saw it. Thanks ❤️

Читать полностью…

Telethon Chat

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 ?

Читать полностью…

Telethon Chat

Is it still not possible to do a minimized blockquote?

Читать полностью…

Telethon Chat

https://docs.telethon.dev/en/stable/concepts/botapi-vs-mtproto.html

Читать полностью…

Telethon Chat

There is no local server API, telethon functions like tdlib and the local bot API server

Читать полностью…

Telethon Chat

somehow you came to the rightish conclusion. and it's not about ipv4/6

Читать полностью…

Telethon Chat

no it's false by default
use_ipv6: bool = False,

Читать полностью…

Telethon Chat

not worked. i think telethon protocol is completely different

Читать полностью…

Telethon Chat

Thank you man❤️
Your so good
Thank you for all your help on this group🌹

Читать полностью…

Telethon Chat

How can I transfer boosts from other channels?

Читать полностью…

Telethon Chat

whatsapp saves chat history data in your device but tg save in cloud same but big different bro

Читать полностью…

Telethon Chat

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)'

Читать полностью…

Telethon Chat

I tried but it's not working
https://pastebin.com/raw/64Bf9Ubj

Читать полностью…

Telethon Chat

sure you use that account who is not in any chat session in the code?

Читать полностью…
Subscribe to a channel