i have a bot and want to get last posts from a telegram channel that isn't joined on in. if that's bot add into channel administrator it's possible, but It is not possible for me.
how should i do it?
It's impossible with current Telegram Bots APIs.
The bot must be administrator of the channel to handle channel posts.
Related
I need to send message from my own account with my nickname and profile (not from bot account) to any selected contact or group. How can I do that? I found bots with similar behaviour but messages are sent from bot account not from my profile which is what I need.
what you're looking for is a so-called "userbot" or "selfbot", i.e. a bot that works with the Telegram API in contrast to the Telegram Bot API. Searching for Telegram userbot library <your preferred programming language> should probably get you started.
i'm trying to create a bot which can read/receive all messages in a specific channel and send them to me .
my problem here is that i can't find a way to access those messages in my bot
important thing is:
i'm not admin or creator of that channel
i don't want to ask the creator to add my bot as administrator
i've searched in google but i wasn't able to find a solution
and i'm also sure that it is possible to do it, because there are already some junction bots with exact same performance .
any references or suggestions are appreciated .
As already pointed out in the Telegram group of python-telegram-bot, bots can't receive messages from channels where they are not an admin. If you want something like this, you'll have to use a user bot, e.g. a program that controls your private Telegram account (in contrast to controlling a bot account). See here for some info on user bots.
Note that also the provider that you linked seems to be using userbots behind the scenes. More precisely, the docs on the so called "DirectConnection" state that you need to enter a phone number (associated to a telegram account) and then "Follow the instructions" which probably just means to enter the verification code that Telegram sends you. Phone number + verification code is exactly what is needed to control your private Telegram account.
Disclaimer: I'm currently the maintainer of python-telegram-bot.
I have a Telegram bot. It was added as an Admin (but without any rights) to a private spam channel. This channel sends to my bot messages twice a minute. How could I remove my bot from this channel?
You can catch a message from this group and then use leaveGroup method with this chat_id. Also may be a good idea to add this id to some kind of blacklist and leave this chat automaticaly
Is it possible to get my telegram channel's "Recent Actions"?
Main reason for doing that, is to get members who joined the channel or left it.
Any suggestions?
It didn't supported by bot API, and no existing library can do this.
You can use channels.getAdminLog#33ddf480 in MTProto.
Is there a posibility to remove the mention of an user in an bot's answer? I developed a telegram bot with the microsoft bot builder framework and only sending the raw message like an echo bot but in group chat there is always this #username metion before every message my bot sends to the group chat. I added my bot via bot father to telegrams bot list.
At the moment this is not a setting the developer can change. Tracking the issue here: https://github.com/Microsoft/BotBuilder/issues/483