Skip to content

Commit 960d348

Browse files
committed
docs: update api documentation
1 parent c75f97d commit 960d348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Emits `message` when a message arrives.
206206
| [options.polling.autoStart] | <code>Boolean</code> | <code>true</code> | Start polling immediately |
207207
| [options.polling.params] | <code>Object</code> | | Parameters to be used in polling API requests. See https://core.telegram.org/bots/api#getupdates for more information. |
208208
| [options.polling.params.timeout] | <code>Number</code> | <code>10</code> | Timeout in seconds for long polling. |
209-
| [options.polling.params.allowed_updates] | <code>Array</code> | | A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. |
209+
| [options.polling.params.allowed_updates] | <code>Array|String</code> | | A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. |
210210
| [options.webHook] | <code>Boolean</code> \| <code>Object</code> | <code>false</code> | Set true to enable WebHook or set options |
211211
| [options.webHook.host] | <code>String</code> | <code>&quot;0.0.0.0&quot;</code> | Host to bind to |
212212
| [options.webHook.port] | <code>Number</code> | <code>8443</code> | Port to bind to |

0 commit comments

Comments
 (0)