longest_cooldown_timedelta property defined
This commit is contained in:
parent
3decb01165
commit
a2965be066
@ -98,6 +98,15 @@ class TelegramBot(object):
|
|||||||
"""
|
"""
|
||||||
return self.__class__._per_chat_cooldown_timedelta
|
return self.__class__._per_chat_cooldown_timedelta
|
||||||
|
|
||||||
|
@property
|
||||||
|
def longest_cooldown_timedelta(self):
|
||||||
|
"""Return the longest cooldown timedelta.
|
||||||
|
|
||||||
|
Updates sent more than `longest_cooldown_timedelta` ago will be
|
||||||
|
forgotten.
|
||||||
|
"""
|
||||||
|
return datetime.timedelta(minutes=1)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def allowed_messages_per_group_per_minute(self):
|
def allowed_messages_per_group_per_minute(self):
|
||||||
"""Return maximum number of messages allowed in a group per minute.
|
"""Return maximum number of messages allowed in a group per minute.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user