Reactions buttons under post published by telegram bot - bots

I am created a telegram bot which send my post to the particular channel.
And I wonder how can I make it add something like like and dislike buttons under post and a counter for every reaction.
I know how to create this buttons:
But how to make this not using other bots?
Thank You for any help in advance.

Related

telegram bot auto leaving from channel

hi all i'm new to telegram apis and bot, i'm having some troubles with my bot: i setted it, got my token and it can become the admin of the channels i do need to admin with it. just the bot every now and then just leave the channel by itself when another administrator of the same channel in whitch it is in posts a message or invite a new user to the channel. does it make any sense to you? is there a solution to keep it in charge of the channel?
other infos: i program in php, the bot is needed to post messages in telegram via a web site programmed in php
i would apreciate a real answear and not just a paste of the link to telegram bot documentation
thanks a lot

is there a method to take screenshots of telegram chat?(want to make a telegram chat screenshot taker)

I am currently writing a bot to take screenshots of Telegram chat in Python.
I have written the options the bot is supposed to give to the user when it's started but I have no idea how to do this.
is it possible at all?
does telegram even let us do such a thing?
Based on official Documents of Telegram :
Bots are no different from human users that you meet in groups for example. They can see your public name, username, and profile pictures, and they can see messages you send to them, that's it.
and you can find more information from bots-privacy-mode
so basically Telegram doesn't let BOTs do such things as taking screenshots.

sending direct messages from nodejs script to telegram

Is it possible to send a message from a node.js server to someone's mobile number or telegram Id directly?
is it possible without using a telegram bot?
I need an API like below:
function sendMessage(senderTelegramId, receiverTelegramId, messageText)
In short: No, without a bot no way for now.
Detailed explanation:
In order for you to send users messages on telegram you would need to create your own telegram bot. They have a well documented API which you can read and play around with.
There are 2 things you should know about sending messages to users using telegram bot:
You can't just send random people messages on telegram even if you know their phone number, to send them messages you need to have their chat_id. See how in the docs
To get the chat_id the user must first click the start button that comes up when they open your bot for the first time. Telegram will send you the chat id of that user and you save it for later when you would want to send messages to that user.
There are tons of libraries that makes working telegram bots very easy, it wouldn't take you more than an hour to get started.
I hope this answers the question, feel free to ask further questions, I have made some bots and you can also play around with them to see how it works.
Cheers )
There is actually one more easiest way to send a message to chat
just fetch the URL
https://api.telegram.org/bot[BOT_API_KEY]/sendMessage?chat_id=[MY_CHANNEL_NAME]&text=[MY_MESSAGE_TEXT]
you can find more details here
https://xabaras.medium.com/sending-a-message-to-a-telegram-channel-the-easy-way-eb0a0b32968

How to detect bot message/user message?

My FB-NodeJS-API prototype is not working correctly because my webhook is receiving the bot respond which is then sent to API.AI.
I need to set a condition where only a user's message should be received on the webhook request or only user's message should be sent to API.AI.
Can anyone advise me on this?
Can you explain the problem better? Please add the relevant code.
The bot response should go the user, not the webhook. The user input will come to the webhook.
I would suggest getting the bot to work without API.AI first and then adding support. My bot is in node.js so you may just want to jump to the source code.
For more information on setting up a bot see my article Facebook Bots for Fun and Profit
The example bot is DMS Software Bot
The source code is Github fb-robot

Is it possible for a Telegram Bot to send any type of message without users trigger?

So I need my Telegram bot to ask a question from user (send any message of any possible type) without any initiation from a user. Is it possible? I cant find anything about this.
If the user interacted with your bot before you just need to use their user_id and send your message. You can't however send message to a user who has never interacted with your bot.
Telegram BOT never can take an action before user interact with bot. because most of available method need "chat_id". if you dont have "chat_id", you can only run simple method like getMe, getUpdates,etc.

Resources