Not so long ago Telegram Bot API got updated with new features for webhook configuration. One of them is allowed_updates
field which is array of strings.
It also has a possibility to set webhook with custom self signed certificate. You just need to post webhook configuration as multipart/form-data
.
But how to post allowed_updates
which is array of strings as multipart/form-data
?
2
Answers
you can post the allowed_updates array of strings by
You can set List the types of updates you want your bot to receive.
here I set to only receive updates of these types:callback_query & inline_query
Here complete list of available update types.
https://core.telegram.org/bots/api#update