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
Читать полностью…from telethon.extensions.markdown import DEFAULT_DELIMITERS
from telethon.tl.types import MessageEntityBlockquote
DEFAULT_DELIMITERS['%%'] = lambda *a, **k: MessageEntityBlockquote(*a, **k, collapsed=True)
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
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 ?
Читать полностью…from telethon.tl.types import MessageEntityBlockquote
from telethon.extensions.markdown import DEFAULT_DELIMITERS
DEFAULT_DELIMITERS["%%"] = MessageEntityBlockquote
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.