user_shared
" and "chat_shared
" service messages, which hold the identifiers of users and chats shared via the buttons.can_send_media_messages
in ChatMemberRestricted and ChatPermissions with several separate fields for the respective media type.use_independent_chat_permissions
to the methods restrictChatMember and setChatPermissions.user_chat_id
to the class ChatJoinRequest.