Function share_users_with_bot

Source
pub async fn share_users_with_bot(
    chat_id: i64,
    message_id: i64,
    button_id: i32,
    shared_user_ids: Vec<i64>,
    only_check: bool,
    client_id: i32,
) -> Result<(), Error>
Expand description

Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot

ยงArguments

  • chat_id - Identifier of the chat with the bot
  • message_id - Identifier of the message with the button
  • button_id - Identifier of the button
  • shared_user_ids - Identifiers of the shared users
  • only_check - Pass true to check that the users can be shared by the button instead of actually sharing them
  • client_id - The client id to send the request to