1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

changed allowed_updates in util to update_types

i think its more clear name
This commit is contained in:
SwissCorePy 2021-06-23 19:57:44 +02:00
parent 506464e637
commit 0bfefdf15d
2 changed files with 6 additions and 5 deletions

View File

@ -541,7 +541,7 @@ class TeleBot:
Use logger levels from logging as a value. None/NOTSET = no error logging
:param allowed_updates: A 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.
See util.allowed_updates for a complete list of available update types.
See util.update_types for a complete list of available update types.
Specify an empty list to receive all update types except chat_member (default).
If not specified, the previous setting will be used.
@ -579,7 +579,7 @@ class TeleBot:
:param long_polling_timeout: Timeout in seconds for long polling (see API docs)
:param allowed_updates: A 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.
See util.allowed_updates for a complete list of available update types.
See util.update_types for a complete list of available update types.
Specify an empty list to receive all update types except chat_member (default).
If not specified, the previous setting will be used.

View File

@ -38,9 +38,10 @@ content_type_service = [
'voice_chat_participants_invited', 'message_auto_delete_timer_changed'
]
allowed_updates = ["update_id", "message", "edited_message", "channel_post", "edited_channel_post",
"inline_query", "chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query",
"poll", "poll_answer", "my_chat_member", "chat_member"
update_types = [
"update_id", "message", "edited_message", "channel_post", "edited_channel_post", "inline_query",
"chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer",
"my_chat_member", "chat_member"
]
class WorkerThread(threading.Thread):