Skip to content

Commit

Permalink
Add VkApiGroup for group token (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkDW committed Apr 7, 2020
1 parent 7a23003 commit c6f3f72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vk_api/vk_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,11 @@ def method(self, method, values=None, captcha_sid=None, captcha_key=None,

return response if raw else response['response']

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

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

0 comments on commit c6f3f72

Please sign in to comment.