How to set chat permission to only allow sending photos, stickers, and gifs #1911
Unanswered
qwerty7415963
asked this question in
Q&A
Replies: 1 comment
-
bot.telegram.setChatPermissions(12345, {
// users are allowed to send photos
can_send_photos: true,
// users are allowed to send animations, games, stickers and use inline bots
can_send_other_messages: true,
can_add_web_page_previews: false,
can_send_messages: false,
can_send_polls: false,
can_change_info: false,
can_invite_users: false,
can_pin_messages: false,
can_manage_topics: false,
can_send_audios: false,
can_send_documents: false,
can_send_video_notes: false,
can_send_videos: false,
can_send_voice_notes: false,
}); If you need further control under |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there any possible way to archive this ?
many thank
Beta Was this translation helpful? Give feedback.
All reactions