Skip to content

Commit c6f3f72

Browse files
authored
Add VkApiGroup for group token (#348)
1 parent 7a23003 commit c6f3f72

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vk_api/vk_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,11 @@ def method(self, method, values=None, captcha_sid=None, captcha_key=None,
647647

648648
return response if raw else response['response']
649649

650+
class VkApiGroup(VkApi):
651+
"""Предназначен для авторизации с токеном группы.
652+
Увеличивает частоту обращений к API с 3 до 20 в секунду.
653+
"""
654+
RPS_DELAY = 1 / 20.0
650655

651656
class VkApiMethod(object):
652657
""" Дает возможность обращаться к методам API через:

0 commit comments

Comments
 (0)