I need to be able to delete self generated messages by my bot automatically, or clear the entire channel's messages for that matter.
I'm not quite sure I saw anything useful in the Documentation. Is that possible?
Related
In the Telegram app, you can send photos that self-destruct and can't be screenshotted by clicking on the clock icon before sending them. Is there any way to reproduce this behavior using the Telegram Bot API?
I'm using python-telegram-bot and couldn't find anything in its docs, but i'm not even sure if the API allows it. I could delete the messages after some time using bot.delete_message, however, the important part here is that the images shouldn't be screenshottable.
I'm using python-telegram-bot and couldn't find anything in docs, but i'm not even sure if the API allows it.
Telegram Bot API does not support such method yet.
I could delete the messages after some time using bot.delete_message, however, the important part here is that the images shouldn't be screenshottable.
Yes, bot can delete messages "manually" but there's no way to control the ability of making screenshots.
I was getting started with telegram bots and I was wondering if there's a way to get a BOT to search through the files posted in a channel (and possibly download them, if the user asks for it).
For instance, if a BOT has a command "/search" and the user searches a file using certain keywords, then the BOT should answer with the requested file, if found on the channel, and it should also provide an internal link to download it.
I noticed that the APIs provide a getFile method that maybe could be useful in this case, I just wanted to know if this thing is achievable!
Hope I've made myself clear!
Recently, There are new robots that claim to be able to tell who has seen your profile photo but most of them are fake.
I want to know is it actually possible to write that bot? Directly by using bot api or indirectly like creating a channel for bot ...
This is not possible in Telegram, those bots just provide fake data.
You can't even know who views your channel post via either Client API, Bot API, or unofficial APIs.
I think all of these robots are fake and for ads. actually it's not useful that a robot tell who seen your profile photo. I think it is impossible.
How can I add another existing bot to my BothFather in telegram?
I have my own bot and I can see it in BotFather and now I am asked to manage another bot (which I have its security key).
But I could not see this bot in my BotFather(obviously, because I did not create it) and I could not find any way to add this second bot into my BotFather in order to change its info or default commands list.
If I understand correctly, you have a bot that you created yourself with #BotFather and you can manage its commands, info etc. by talking to BotFather.
Then you have been asked to manage another bot created by someone else and you have been given its token.
Let me tell you that you cannot change the info of the Bot created by someone else. i.e. you don't have the ownership of the Bot.
Bot Ownership transfer is a feature that Telegram Support said will consider in future.
As far as making the bot work, by using the API Token you can go through their Bot API Documentation.
[EDIT]
With Bot API 5.0, it's now possible to Transfer the bot ownership.
I made a simple chatbot using Microsoft Bot Framework and integrated it with Telegram.
He works fine whenever I message him privately but whenever I put him in a group with my friends, he doesn't reply, even when I mention him.
/setjoingroups is enabled, and so is /setprivacy.
First make sure it is not caused by Microsoft Bot itself. Then for all normal bots --
Always add a Telegram bot to a group via the bot's info window, instead of inviting the bot to a group via the group's info window.
It's a clear trap for beginners. I'm surprised that Telegram didn't note this in their documentation.
When you configured your bot on Telegram, did you make it an inline bot? It's been my experience that inline bots cannot participate in group chats, but can message privately. If not, please open a GitHub issue here and we'll follow up there.
Beyond all other suggestions like turning off inline functions, setting privacy to disabled and allowing to participate in groups, I also made the bot an admin of my group. And now it processes all messages. That's what's worked for me.
I had this same problem, and I found that I just needed to add the bot as an 'admin' to the chat instead of just a normal member. The telegram bot must have admin privileges to access every message/image that the users of the group-chat send.