How to get telegram bot chat_id? - telegram

Do telegram bot can send a message to himself?
Need to my bot on start send a message to himself.
Is there such a possibility?

No, bots can't send message to each other or to them self.

Related

Send Telegram message as a user

I want to know if it possible to send message to my telegram bot as a user.
Maybe I should send a request with my credentials? Or I am completely missing something?
UPD:
Ok I see it is not clear. I want to send message using program.
Open your Telegram App, search for your bot and open the chat with it. Then type a message and hit send.

Is it possible to send messages to Telegram's "Saved Messages" through the API?

Is it possible to send a message via Telegram API to the Saved Messages chat?
I have been looking all over the internet but could not find any information. I would think this would be possible.
If you mean the main mtproto api, yes you can send yourself a message by your id or username and telegram will place it in saved messages.
You did not mention which API you use, but this is how you do it in Telethon:
client.send_message("me", "hello")
But if you mean bot api, it's not possible for bots to send messages to your saved message.

Can a Telegram bot read his own messages on a channel

I'm trying to figure out why my bot is not aware of his own messages on a channel, when I use bot.get_updates() I receive only messages written by me and not by the bot.
According to the python-telegram-bot API description, getUpdates fetches the messages sent to your bot, not the messages your bot sent. So it is intended behaviour that getUpdates would not be aware of the messages sent by your bot.
As a sidenote, as stated in the Telegram Bots FAQ, Telegram bots cannot access messages sent by other bots, regardless of the settings.

How can I send a Telegram message using curl from my own Telegram account (not from a bot)

I want to send a message to a group from Telegram user. The message should send from my personal account instead of the bot.
Is it possible, and if so what is the API method? I want to use CURL.
Vesa
You can't do it via HTTP request, if you want to send messages from a human account, try unofficial telegram-cli instead.

Telegram api send frequently message to our api

I have a problem with telegram bot api.
when i was set webhook,then one of client send a photo to our bot and telegram api send frequently obejct of this photo to our api with the same update_id
this is answer from telegram support:
most probably issue is that you are not answering with a "2XX" to our requests, so we are sending the same updete as we understand that it wasn't received.
whats problem?!
The problem is you are not returning the proper status code (200) to Telegram so it thinks you did not receive the message successfully.

Resources