How to automate a Telegram bot? - python-3.x

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.

Related

Microsoft Bot Framework: How to add Bot to chat via messaging extension?

Let's assume a user chats with another user in a 1:1 chat. (Might also be a group chat.) The user adds a bot and continues to chat while the bot now adds value to the conversation.
We are searching for a way to make adding the bot to a chat as seamless as possible through a simple button click. It seems the closest we can get to a button is using a messaging extension action command.
When the user invokes the messaging extension our backend service runs and can respond e.g. with a card. Now instead of a card is it possible to generate a response to add a bot? There are special responses e.g. for authentication. Is there a response telling the Teams client to add a bot?
Any hints are appreciated.
JIT installation of bot is an option here. You will be able to add bot to user conversation. Check following sample application which helps to add bot instantly: https://github.com/SubbaReddi/89.teams-just-in-time-installation

Use a bot as a user on Telegram

I'm using https://github.com/yagop/node-telegram-bot-api and I'm able to send message to user and to my channels. I'd like to improve my bot, I want to manage the private messages that my bot receives.
At the moment when the BOT receive a message, I can save on database from my node application, but if I want to manage all messages, I need to build a backoffice.
Is it possible to read the messages from Telegram and impersonate the BOT and start a normal conversation?
Using Telegram bot, Telegram does not provide any function to retrieve old messages. BOT API does not have such feature.
What you need is to use TDlib - The Telegram client API. It supports both bot and normal Telegram account. And it has many features not available in BOT API.
https://github.com/tdlib/td
There is an example of creating a Userbot on this github page: UserBot
There is also a library for managing a telegram account, which is used to create cross-platform telegram clients: TDLib

Have my Telegram bot use my credentials to forward a message

I am in a private Telegram channel (of which I'm not an admin), and I need to create a bot which forwards the messages I get in that channel. I cannot make the bot a channel admin.
I've read the API, and couldn't find a hint to serve this purpose.
Is there a way maybe of letting my bot authenticate in telegram using my credentials? That way it receives the messages and can forward them.
Is it even possible to automate this process using a Telegram bot at all?
Thanks
If you need to make The Bot is Admin you must be the Admin as well
Thanks

how to create input submit interface in telegram bot (in Facebook bot available)

I am new to Telegram chatbot development. I want to create input interface for Telegram bot like I've given the image above. The above bot in created in Facebook Messanger bot. But I Want to create it in Telegram.
Is there any way to do like that, in Telegram?
or Any other custom way to use along with Telegram?
Please help me to solve the problem.

How to configure a Telegram bot in a private chat

I want to add some bots to my Telegram supergroup, such as a welcome bot and a statistics bot.
I see there are ready-made bots (like #combot) that I can just add to my group and configure.
My problem is that I already have users in my group and I don't really want them to see all the mess of the configuration chat with the bot, and also I don't want them to access the bot of course!
Is there a way to accomplish this?

Resources