suitable users. Tapping on any user will send their identifier to the bot in a “user_shared” service message. Available in private chats only.
anyone explain this, what happens after press this button ???
what is user_shared service, it measn> all my chat history will be shared with bot
You have everything explained in your message that you have copypasted from docs. It will share user_id
means, still inot understand, will it open a pop up to select a chat then after i select any chat then it user id will shows to bot???
yes. @username_to_id_bot is most popular example I know
Can you explain what i actually shared ?
So when u share bot or channel it shares what ?
You can print updates and see.
But i don't what links are embedded in those buttons
@username_to_id_bot
It's a keyboardbutton , clicking on which the official applications show a list of users dialogs, and whichever is selected only the corresponding ID is sent to the bot. There aren't any links.
Yes I am asking how to make this ? There must be some link embedded in them
sendMessage has reply_markup you can check in pinned message for documentation link.
this will help: https://core.telegram.org/bots/api#keyboardbuttonrequestchat
Обсуждают сегодня