Is it possible to programmatically enable/disable privacy mode and groups mode for the bot?
Can bot do it by itself??
Or only BotFather can do that?
Also, is the 20 bots restriction per account still a thing?
It's not possible to change privacy mode using bot API, but you can use MTPROTO API to communicate with BotFather through a real Telegram account that is the owner of the bot. So the bot can't do that itself.
Yes, currently you can only create 20 bots per account.
Related
My bot currently works as a service to notify users of their application status on our platform. However, I am worried users who have strict privacy settings will miss these notifications.
Does anyone know other options to work around this? My best option currently is creating a private channel with said user. Maybe getting verified?
Thanks
I am using discordjs library and I can send DMs to users with their snowflake for now, no issues unless the user has these strict privacy settings.
All these users would be sharing at least one server with the bot.
I have attached below a small snippet illustrating where/ how I am sending these messages
code snippet example
I'm trying to send a notification out using Google Chats. But I have a few problems with the documentation I've been able to find:
It requires me to have a paid service account, which I do not have, and will not be getting
It requires using a chat bot, which (in my understanding) needs to be added to a room, and cannot just send out messages
Chat bots can't send out messages directly to personal accounts?
I'm already using Google OAuth2 authentication to access another Google API, so I'd like to use a Google API to send messages directly from the authenticated account. How would I do that?
So far:
All the documentation I can find is about making a chat bot.
I've considered some alternatives to sending out messages, but due to corporate device restrictions that will not be changing, google chats is my best option.
At the moment what you're trying to do is not possible, for multiple reasons.
You may know this already, but Google Chat is an upgrade to their old "Classic Hangouts" chat. In Google's own words, this is focused on enterprise (i.e. paid) accounts. While personal accounts are also able to upgrade and get some of the benefits, their documentation shows that Google Chat for personal accounts is very similar to the old Hangouts and most of the new features are meant for the paid accounts. This also includes the use of bots.
As you've observed, the Chat API currently only has methods to create and manage bots. There are no methods to send messages as your own account. This could be to prevent spam or because their Chat API is relatively new, since the Classic Hangouts did not have an API, and Chat hasn't fully replaced it yet. Even then, given that Chat is "enterprise-focused", it is uncertain whether or not personal accounts would get access to any new API features.
You could try to post feedback on their issue tracker or request the feature to see if you get a response, but for an immediate solution you may want to just use the Gmail API to send a regular email or reconsider the other alternatives that you had in mind.
I want to create a simple webhook to a chat room in chat.google.com. I am unable to see menu option to configure webhooks. What do GSuite admins have to do to enable webhooks?
Read the documentation, specially the part about limitations.
I recently joined a Telegram bot that requires user interaction every few hours.
Basically I Log into the bot, press a button, check text and then press another button.
Is it possible to automate such a task?
Thank you
Telegram Bot API doesn't allow bots to interact with other bots. So bots won't be useful for such task.Only way to do that is to use Telegram Core API (the API used in telegram clients), make a custom Telegram client, and do the task through it.
My telegram bot with privacy set to off isn't receiving updates from t.me/ChatWarsMarket group but service messages. It works fine with every other group. Is there bug in telegram? How to recieve updates from this group?
Once the bot is added in a group, it remembers that privacy setting. If you change privacy settings via botfather actually it won't affect groups where the bot is already in.
Probably this is what happened to you. The only way to get rid of this is to kick and re add the bot to use new privacy settings in that group