Send Telegram message as a user - telegram

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.

Related

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.

Telegram API Client receive message

I have problems with telegram's api in c#. I search any solutions how to recevie message from Telegram using API. I found only library for Telegram BOT(send message etc.), but I need only recevie message from one user. There is option "Get.Message" in Telegram Api, but I can't find simply library to use this option.
using the telegram client api you can get updates automatically from telegram when a message is received. You simply need to handle the response once the session is created and a connection is made
Just in case you don't want realtime updates, you can use messages.GetHistory and supply the number of messages you'd like to retrieve. You need to provide the chat ID and access hash which you can get from contactsResolveUsername
enter link description here

Can Telegram Bot Api used to fetch unread messages from my telegram account?

I have subscribed to a telegram bot (I am not the owner/admin of that bot) which sends messages in a particular format. I need to do is to parse the incoming messages and used the parsed information as parameters to a trading API.
Hence, I need a daemon sort of thing which runs on my laptop and keeps listening for any new messages from that bot, and when it receives one, then parse it.
Can the Telegram Bot API handle this? In other words if I create a bot will it be able to read the messages sent to me by the other bot
Did you try to search on official documentation API or FAQ?
https://core.telegram.org/bots/faq#why-doesn-39t-my-bot-see-messages-from-other-bots
You can do it using python and python-telegram-bot package.
When you create a bot in your python code using the following code:
bot = telegram.Bot("Your bot's token")
you are able to get the new messages sent to your bot using bot.get_updates() and there's a feature to check if the sent message is from a bot or not. You can write a function that returns a boolean telling whether is the message sender bot or not:
def is_bot(update=dict()): #"update" is one of the messages which got returned from get_updates()
message = update["message"].to_dict()
return message["from"]["is_bot"]
for update in bot.get_updates():
print(is_bot(update))

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.

How to get telegram bot chat_id?

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.

Resources