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
out of hundreds of messages everyday who's gon pay attention to that specific one
Читать полностью…You have inputted invalid api id or api hash or both
You may check validity from my.telegram.org
You can remove lambda and set it equally to MessageEntityBlockquote like /channel/TelethonChat/639792
Читать полностью…I was thinking what have he meant from that sentence around a half of a o'clock
Читать полностью…it worked but i still ran into the same problem as setting it to false
Читать полностью…from telethon.extensions.markdown import DEFAULT_DELIMITERS
from telethon.tl.types import MessageEntityBlockquote
DEFAULT_DELIMITERS['%%'] = lambda *a, **k: MessageEntityBlockquote(*a, **k, collapsed=True)
How can I handle the updates that come when removing a user from the channel?
Читать полностью…I need to use some conversation , but the input could be a simple message involving the user id either a RequestedPeer , And yeah I wanna know that can I handle them with conv.wait_send or I may use conv.wait_event(events.Raw(UpdateNewMessage)) instead.
Читать полностью…It does, until telegram does not send you automatic UpdateNewChannelMessage anymore
you can't know you're not getting them unless you do, knowing it moves out of scope of library, it's too specific problem
Does events.NewMessage not imply all types of UpdateNewMessage ?
Читать полностью…I've saved you on my contacts list if you've been recognised as a spammer
Читать полностью…thats not really the problem, its kinda complicated, alan miam pv tozihesh midam age mayel be komak hastin
Читать полностью…The api_id/api_hash combination is invalid (caused by SendCodeRequest) can anyone help with this ?
Читать полностью…What to set as false? You don't need to define collapse=False parameter anymore
Читать полностью…from telethon.tl.types import MessageEntityBlockquote
from telethon.extensions.markdown import DEFAULT_DELIMITERS
DEFAULT_DELIMITERS["%%"] = MessageEntityBlockquote
The api_id/api_hash combination is invalid (caused by SendCodeRequest)
Читать полностью…I implemented catch_up in another function as you told me, thank you. The delay should be significantly better now, but I hope it doesn't block my telegram. Do you have any suggestions on polling delay?
Читать полностью…@client.on(events.Raw(UpdateNewMessage))
async def handler(event):
if event.message.action and isinstance(event.message,MessageService) and isinstance(event.message.action,MessageActionRequestedPeerSentMe):
logger.info(event.message.action.peers[0].user_id)
a user using a Telegram app isn't expected to load certain messages repeatedly, if you want to estimate the limitations, it's what a usual user would need
a usual user wouldn't open a chat every second for a day, unless they're retarded, so exact numbers don't matter, Telegram has ati-retard ai systems or something that knows abuse, it's mostly pointless to do numbers with them.
your other better option is GetChannelDifference which is what the library uses to fetch new messages blabala I've explained it a lot so search the chat.
but it's better to not rush, start with catch_up thing (which uses that) and the patch first.
iter_messages has restrictive limits over extended periods and repeated calls
Читать полностью…