Longman telegram bot clone message - telegram-bot

I'm trying to create a command replying a message. When you write
/share replying a message the bot have to clone the message and send in to me in pvt.
My problem is that I want to manage all type of messages [ also photos, documents, contact and not just text ]
There is someone who wrote a "cloneMessage" function ?! I'm using

Related

How to send message to the user by using telegram id and python_telegram_bot library?

I want to send the message to anybody by using his telegramid and python_telegram_bot library.
I can send the message to me by using below code but if I put other's id then I can not send the message and it says chat not found message.
updater = Updater(mybot_token, use_context=True)
updater.bot.send_message(chat_id = receiver_id, text="welcome")
I am not sure why it is only possible to send the message to me, not the others even though I puth the chat_id as their telegram_id.
Bots can only send messages to users that have already started the bot. See the Telegram Bot docs.

Messages sent to my sample Telegram Bot cannot be seen by one with whom I share the bot link

I have created a sample Telegram Bot. http://t.me/zOS_Telegram_bot
I am being able to send text messages to the bot. For example, check the "Testing our new Telegram Bot!!!" messages that I am being able to send to the bot. enter image description here
However, when I share the bot link http://t.me/zOS_Telegram_bot with someone else, he/she cannot see the messages. What is it that I am missing here?

can Telegram Bot sends message to group?

I create a group on Telegram and created a bot and add in.
I am trying to send a message to group that I created and the error shown as below
{"ok":false,"error_code":403,"description":"[Error]: Forbidden: can't write to chat with deleted user"}
I have use getUpdates from Bot Documents and managed to get chat id and doesn't work again for me. p2p (private type message) works for me but not group type.
Any advice please? Thank you.
Yes you can, you have to invite the bot into the group, grab the chat_id of the group and send the message as you are sending a normal message to a private user.
The error message is self-explanatory tough.

Telegram : How can show welcome message for new join bot

I create new bot in telegram bot ,and do steps like here :-
https://core.telegram.org/bots#
But now i need when any new user join in my bot, i need to show him welcome message.
How can do that ?
Use /setdescription and /setabouttext #BotFather commands
You must send these commands to #BotFather
/setdescription
then send your bot id like:
#example_bot
and send you welcome message
Welcome to my bot
You need to implement the /start command in your bot realization - set the welcome message.
And you should describe this command in chat with #BotFather via /setcommands for your bot.
After that when user adds your bot, the /start command fires automatically, and he will see the message you implemented.

How can I send message to specific chatID?

I have chatId and want send messages while execute some tasks from java code. I found this explain on telegram "Bots can't initiate conversations with users. A user must either add them to a group or send them a message first. People can use telegram.me/ links or username search to find your bot." But my task works good when I use https request directly from browser. My bot perfectly answer for requests but how I can do this without user request?
I can not truly understand your case!
Anyway, your bot can send a message to a chat ID Only if the user witch blongs to the specified chat ID added your bot (send start to a bot).
and if it happened then send your message with
/sendMessage