channel via ... invite link' in api bots? i could not find anything about it
https://tl.telethon.dev/?q=GetExportedChatInvite
bots can't use that
You need to listen to events of join instead
i know its possible with session accounts but i want it in api bot. i tried every possible way to listen to join/left events in channels but there is no update. the only time when bot gets any update about join/left was when i add and delete the bot it self from channel
You will receive join and leave events fine as an admin bot. that's the only way you can get statistics about invite link joins as a bot. also a half censored version of the link will be shown if the bot isn't the creator of the link.
well i tried with the link which my bot created. when i look at the recent actions in channel, i can see the new user joined the channel via .... invite link. but telegram doesnt send any data about that event to my bot i also made my bot permissions to be able to manage channels and groups in the bot father but it didnt work
as you can see here is the all informations i need but i dont know how to get these message
https://t.me/DokhtarSaraBot i also found this bot which does exaclty what i want to do in my bot (making and monitoring invite links) and its not a session bot so there must be a way to get this info but i couldnt access the developer to ask him
Bots can't see recent actions. just listen to ChatAction events. if you're using recent enough telethon, you will receive the join events fine. including the info on the link used
is there any other way instead of listening to recent actions?
events.ChatAction as i said, that's the only way
is that work for api bots?
Обсуждают сегодня