Пример #1
0
 def __init__(self, message_id, ownerUserId, packId, emoji, small, smallW,
              smallH, medium, mediumW, mediumH, large, largeW, largeH):
     body = Body(body_type='AddSticker',
                 ownerUserId=ownerUserId,
                 packId=packId,
                 emoji=emoji,
                 small=small,
                 smallW=smallW,
                 smallH=smallH,
                 medium=medium,
                 mediumW=mediumW,
                 mediumH=mediumH,
                 large=large,
                 largeW=largeW,
                 largeH=largeH)
     super().__init__(message_id, Services.Stickers, body)
Пример #2
0
 def __init__(self, message_id, groupId, shortName):
     body = Body(body_type='UpdateGroupShortName',
                 groupId=groupId, shortName=shortName)
     super().__init__(message_id, Services.Groups, body)
Пример #3
0
 def __init__(self, message_id, userId, packId):
     body = Body(body_type='MakeStickerPackDefault',
                 userId=userId,
                 packId=packId)
     super().__init__(message_id, Services.Stickers, body)
Пример #4
0
 def __init__(self, message_id, userId, key, value):
     body = Body(body_type='AddUserExtBool',
                 userId=userId,
                 key=key,
                 value=value)
     super().__init__(message_id, Services.Users, body)
Пример #5
0
 def __init__(self, message_id, query):
     body = Body(body_type='FindUser', query=query)
     super().__init__(message_id, Services.Users, body)
Пример #6
0
 def __init__(self, message_id, userId, fileLocation):
     body = Body(body_type='ChangeUserAvatar',
                 userId=userId,
                 fileLocation=fileLocation)
     super().__init__(message_id, Services.Users, body)
Пример #7
0
 def __init__(self, message_id, userId, nickname):
     body = Body(body_type='ChangeUserNickname',
                 userId=userId,
                 nickname=nickname)
     super().__init__(message_id, Services.Users, body)
Пример #8
0
 def __init__(self, message_id, groupId, key):
     body = Body(body_type='RemoveGroupExt',
                 groupId=groupId, key=key)
     super().__init__(message_id, Services.Groups, body)
Пример #9
0
 def __init__(self, message_id, keyspace, key):
     body = Body(body_type='DeleteValue',
                 keyspace=keyspace, key=key)
     super().__init__(message_id, Services.KeyValue, body)
Пример #10
0
 def __init__(self, message_id, fileLocation):
     body = Body(body_type='DownloadFile', fileLocation=fileLocation)
     super().__init__(message_id, Services.Files, body)
Пример #11
0
 def __init__(self, message_id, bytes):
     body = Body(body_type='UploadFile', bytes=bytes)
     super().__init__(message_id, Services.Files, body)
Пример #12
0
 def __init__(self, message_id, peer, randomId, message):
     body = Body(body_type='UpdateMessageContent',
                 randomId=randomId,
                 peer=peer, updatedMessage=message)
     super().__init__(message_id, Services.Messaging, body)
Пример #13
0
 def __init__(self, message_id, peer, message):
     body = Body(body_type='SendMessage',
                 randomId=random_id(message_id),
                 peer=peer, message=message)
     super().__init__(message_id, Services.Messaging, body)
Пример #14
0
 def __init__(self, message_id, creatorUserId):
     body = Body(body_type='CreateStickerPack', creatorUserId=creatorUserId)
     super().__init__(message_id, Services.Stickers, body)
Пример #15
0
 def __init__(self, message_id, ownerUserId, packId, stickerId):
     body = Body(body_type='DeleteSticker',
                 ownerUserId=ownerUserId,
                 packId=packId,
                 stickerId=stickerId)
     super().__init__(message_id, Services.Stickers, body)
Пример #16
0
 def __init__(self, message_id, groupPeer, userPeer):
     body = Body(body_type='InviteUser',
                 groupPeer=groupPeer, userPeer=userPeer)
     super().__init__(message_id, Services.Groups, body)
Пример #17
0
 def __init__(self, message_id, groupId, key, value):
     body = Body(body_type='AddGroupExtBool',
                 groupId=groupId, key=key, value=value)
     super().__init__(message_id, Services.Groups, body)
Пример #18
0
 def __init__(self, message_id, keyspace):
     body = Body(body_type='GetKeys',
                 keyspace=keyspace)
     super().__init__(message_id, Services.KeyValue, body)
Пример #19
0
 def __init__(self, message_id, title):
     body = Body(body_type='CreateGroup',
                 title=title)
     super().__init__(message_id, Services.Groups, body)
Пример #20
0
 def __init__(self, message_id, keyspace, key, value):
     body = Body(body_type='SetValue',
                 keyspace=keyspace, key=key, value=value)
     super().__init__(message_id, Services.KeyValue, body)
Пример #21
0
 def __init__(self, message_id, userId, about):
     body = Body(body_type='ChangeUserAbout', userId=userId, about=about)
     super().__init__(message_id, Services.Users, body)
Пример #22
0
 def __init__(self, message_id):
     body = Body(body_type='GetHooks')
     super().__init__(message_id, Services.WebHooks, body)
Пример #23
0
 def __init__(self, message_id, userId):
     body = Body(body_type='IsAdmin', userId=userId)
     super().__init__(message_id, Services.Users, body)
Пример #24
0
 def __init__(self, message_id, name):
     body = Body(body_type='RegisterHook', name=name)
     super().__init__(message_id, Services.WebHooks, body)
Пример #25
0
 def __init__(self, message_id, userId, slashCommand):
     body = Body(body_type='RemoveSlashCommand',
                 userId=userId,
                 slashCommand=slashCommand)
     super().__init__(message_id, Services.Users, body)
Пример #26
0
 def __init__(self, message_id, username, name):
     body = Body(body_type='CreateBot',
                 username=username, name=name)
     super().__init__(message_id, Services.Bots, body)
Пример #27
0
 def __init__(self, message_id, userId, key):
     body = Body(body_type='RemoveUserExt', userId=userId, key=key)
     super().__init__(message_id, Services.Users, body)
Пример #28
0
 def __init__(self, message_id, title, owner, members):
     body = Body(body_type='CreateGroupWithOwner',
                 title=title,
                 user=owner, members=members)
     super().__init__(message_id, Services.Groups, body)