PySPlusthon 0.5.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PySPlusthon/__init__.py +3 -0
- PySPlusthon/client/__init__.py +1 -0
- PySPlusthon/client/attachments/__init__.py +29 -0
- PySPlusthon/client/attachments/get_file.py +22 -0
- PySPlusthon/client/attachments/send_animation.py +71 -0
- PySPlusthon/client/attachments/send_audio.py +54 -0
- PySPlusthon/client/attachments/send_contact.py +47 -0
- PySPlusthon/client/attachments/send_document.py +63 -0
- PySPlusthon/client/attachments/send_location.py +45 -0
- PySPlusthon/client/attachments/send_media_group.py +88 -0
- PySPlusthon/client/attachments/send_photo.py +67 -0
- PySPlusthon/client/attachments/send_sticker.py +51 -0
- PySPlusthon/client/attachments/send_video.py +56 -0
- PySPlusthon/client/attachments/send_voice.py +52 -0
- PySPlusthon/client/attachments/upload_file.py +82 -0
- PySPlusthon/client/chats/__init__.py +43 -0
- PySPlusthon/client/chats/ban_chat_member.py +24 -0
- PySPlusthon/client/chats/delete_chat_photo.py +32 -0
- PySPlusthon/client/chats/get_chat.py +69 -0
- PySPlusthon/client/chats/get_chat_administrators.py +18 -0
- PySPlusthon/client/chats/get_chat_history.py +39 -0
- PySPlusthon/client/chats/get_chat_member.py +16 -0
- PySPlusthon/client/chats/get_chat_members.py +29 -0
- PySPlusthon/client/chats/get_chat_members_count.py +21 -0
- PySPlusthon/client/chats/join_chat.py +31 -0
- PySPlusthon/client/chats/leave_chat.py +22 -0
- PySPlusthon/client/chats/pin_chat_message.py +31 -0
- PySPlusthon/client/chats/promote_chat_member.py +64 -0
- PySPlusthon/client/chats/restrict_chat_member.py +25 -0
- PySPlusthon/client/chats/set_chat_description.py +23 -0
- PySPlusthon/client/chats/set_chat_photo.py +33 -0
- PySPlusthon/client/chats/set_chat_title.py +23 -0
- PySPlusthon/client/chats/unban_chat_member.py +24 -0
- PySPlusthon/client/chats/unpin_all_chat_messages.py +38 -0
- PySPlusthon/client/chats/unpin_chat_message.py +33 -0
- PySPlusthon/client/client.py +223 -0
- PySPlusthon/client/invite_links/__init__.py +7 -0
- PySPlusthon/client/invite_links/create_chat_invite_link.py +14 -0
- PySPlusthon/client/invite_links/export_chat_invite_link.py +21 -0
- PySPlusthon/client/invite_links/revoke_chat_invite_link.py +23 -0
- PySPlusthon/client/messages/__init__.py +21 -0
- PySPlusthon/client/messages/answer_callback_query.py +12 -0
- PySPlusthon/client/messages/copy_message.py +43 -0
- PySPlusthon/client/messages/delete_message.py +29 -0
- PySPlusthon/client/messages/edit_message_caption.py +40 -0
- PySPlusthon/client/messages/edit_message_reply_markup.py +17 -0
- PySPlusthon/client/messages/edit_message_text.py +40 -0
- PySPlusthon/client/messages/forward_message.py +35 -0
- PySPlusthon/client/messages/send_message.py +39 -0
- PySPlusthon/client/stickers/__init__.py +9 -0
- PySPlusthon/client/stickers/add_sticker_to_set.py +15 -0
- PySPlusthon/client/stickers/create_new_sticker_set.py +16 -0
- PySPlusthon/client/stickers/delete_sticker_from_set.py +10 -0
- PySPlusthon/client/stickers/get_sticker_set.py +11 -0
- PySPlusthon/client/stickers/upload_sticker_file.py +16 -0
- PySPlusthon/client/updates/__init__.py +8 -0
- PySPlusthon/client/updates/delete_webhook.py +9 -0
- PySPlusthon/client/updates/get_updates.py +14 -0
- PySPlusthon/client/updates/get_webhook_info.py +10 -0
- PySPlusthon/client/updates/set_webhook.py +10 -0
- PySPlusthon/client/users/__init__.py +6 -0
- PySPlusthon/client/users/ask_review.py +14 -0
- PySPlusthon/client/users/get_me.py +16 -0
- PySPlusthon/conditions/__init__.py +43 -0
- PySPlusthon/conditions/all.py +6 -0
- PySPlusthon/conditions/animation.py +7 -0
- PySPlusthon/conditions/at_state.py +18 -0
- PySPlusthon/conditions/audio.py +7 -0
- PySPlusthon/conditions/author.py +13 -0
- PySPlusthon/conditions/caption.py +7 -0
- PySPlusthon/conditions/channel.py +11 -0
- PySPlusthon/conditions/channel_chat_created.py +7 -0
- PySPlusthon/conditions/chat.py +14 -0
- PySPlusthon/conditions/click.py +24 -0
- PySPlusthon/conditions/command.py +23 -0
- PySPlusthon/conditions/condition.py +88 -0
- PySPlusthon/conditions/contact.py +7 -0
- PySPlusthon/conditions/content.py +7 -0
- PySPlusthon/conditions/delete_chat_photo.py +7 -0
- PySPlusthon/conditions/document.py +7 -0
- PySPlusthon/conditions/entities.py +7 -0
- PySPlusthon/conditions/equals.py +14 -0
- PySPlusthon/conditions/forward.py +7 -0
- PySPlusthon/conditions/group.py +11 -0
- PySPlusthon/conditions/group_chat_created.py +7 -0
- PySPlusthon/conditions/is_admin.py +17 -0
- PySPlusthon/conditions/is_instance.py +10 -0
- PySPlusthon/conditions/is_joined.py +61 -0
- PySPlusthon/conditions/left_chat_member.py +7 -0
- PySPlusthon/conditions/location.py +7 -0
- PySPlusthon/conditions/media.py +7 -0
- PySPlusthon/conditions/media_group.py +7 -0
- PySPlusthon/conditions/new_chat_members.py +7 -0
- PySPlusthon/conditions/new_chat_photo.py +7 -0
- PySPlusthon/conditions/new_chat_title.py +7 -0
- PySPlusthon/conditions/number.py +12 -0
- PySPlusthon/conditions/photo.py +7 -0
- PySPlusthon/conditions/pinned_message.py +7 -0
- PySPlusthon/conditions/poll.py +7 -0
- PySPlusthon/conditions/private.py +11 -0
- PySPlusthon/conditions/regex.py +17 -0
- PySPlusthon/conditions/reply.py +7 -0
- PySPlusthon/conditions/sticker.py +7 -0
- PySPlusthon/conditions/supergroup_chat_created.py +7 -0
- PySPlusthon/conditions/text.py +7 -0
- PySPlusthon/conditions/video.py +7 -0
- PySPlusthon/conditions/voice.py +7 -0
- PySPlusthon/dispatcher/__init__.py +5 -0
- PySPlusthon/dispatcher/chain.py +165 -0
- PySPlusthon/dispatcher/dispatcher.py +124 -0
- PySPlusthon/dispatcher/logging_chain.py +36 -0
- PySPlusthon/dispatcher/monitoring_chain.py +19 -0
- PySPlusthon/dispatcher/printing_chain.py +21 -0
- PySPlusthon/enums/__init__.py +7 -0
- PySPlusthon/enums/chat_member_status.py +9 -0
- PySPlusthon/enums/chat_type.py +9 -0
- PySPlusthon/enums/message_media_type.py +16 -0
- PySPlusthon/enums/name_enum.py +13 -0
- PySPlusthon/enums/peer_type.py +8 -0
- PySPlusthon/enums/poll_type.py +8 -0
- PySPlusthon/enums/transaction_status.py +10 -0
- PySPlusthon/errors/__init__.py +11 -0
- PySPlusthon/errors/dispatching_errors/__init__.py +2 -0
- PySPlusthon/errors/dispatching_errors/break_dispatching.py +2 -0
- PySPlusthon/errors/dispatching_errors/continue_dispatching.py +2 -0
- PySPlusthon/errors/rpc_errors/__init__.py +8 -0
- PySPlusthon/errors/rpc_errors/bad_request_error.py +6 -0
- PySPlusthon/errors/rpc_errors/flood_error.py +6 -0
- PySPlusthon/errors/rpc_errors/forbidden_error.py +6 -0
- PySPlusthon/errors/rpc_errors/internal_error.py +6 -0
- PySPlusthon/errors/rpc_errors/not_found_error.py +6 -0
- PySPlusthon/errors/rpc_errors/rpc_error.py +23 -0
- PySPlusthon/errors/rpc_errors/too_many_requests.py +10 -0
- PySPlusthon/errors/rpc_errors/unauthorized_error.py +6 -0
- PySPlusthon/event_handlers/__init__.py +12 -0
- PySPlusthon/event_handlers/callback_query_handler.py +16 -0
- PySPlusthon/event_handlers/command_handler.py +46 -0
- PySPlusthon/event_handlers/connect_handler.py +19 -0
- PySPlusthon/event_handlers/disconnect_handler.py +18 -0
- PySPlusthon/event_handlers/edited_message_handler.py +16 -0
- PySPlusthon/event_handlers/error_handler.py +15 -0
- PySPlusthon/event_handlers/event_handler.py +53 -0
- PySPlusthon/event_handlers/initialize_handler.py +18 -0
- PySPlusthon/event_handlers/message_handler.py +16 -0
- PySPlusthon/event_handlers/shipping_query_handler.py +16 -0
- PySPlusthon/event_handlers/shutdown_handler.py +18 -0
- PySPlusthon/event_handlers/update_handler.py +16 -0
- PySPlusthon/network/__init__.py +1 -0
- PySPlusthon/network/httpconnection.py +74 -0
- PySPlusthon/objects/__init__.py +43 -0
- PySPlusthon/objects/animation.py +44 -0
- PySPlusthon/objects/audio.py +36 -0
- PySPlusthon/objects/callback_query.py +37 -0
- PySPlusthon/objects/chat.py +118 -0
- PySPlusthon/objects/chat_member.py +53 -0
- PySPlusthon/objects/chat_permissions.py +26 -0
- PySPlusthon/objects/chat_photo.py +24 -0
- PySPlusthon/objects/contact.py +18 -0
- PySPlusthon/objects/date.py +35 -0
- PySPlusthon/objects/document.py +36 -0
- PySPlusthon/objects/edited_message.py +27 -0
- PySPlusthon/objects/entity.py +21 -0
- PySPlusthon/objects/file.py +21 -0
- PySPlusthon/objects/forward_origin.py +22 -0
- PySPlusthon/objects/inline_keyboard.py +65 -0
- PySPlusthon/objects/inline_keyboard_button.py +30 -0
- PySPlusthon/objects/input_media.py +44 -0
- PySPlusthon/objects/input_media_photo.py +14 -0
- PySPlusthon/objects/input_media_video.py +14 -0
- PySPlusthon/objects/invite_link.py +32 -0
- PySPlusthon/objects/list.py +24 -0
- PySPlusthon/objects/location.py +14 -0
- PySPlusthon/objects/message.py +478 -0
- PySPlusthon/objects/message_id.py +31 -0
- PySPlusthon/objects/object.py +154 -0
- PySPlusthon/objects/order_info.py +19 -0
- PySPlusthon/objects/photo.py +31 -0
- PySPlusthon/objects/poll.py +34 -0
- PySPlusthon/objects/poll_option.py +16 -0
- PySPlusthon/objects/reply_keyboard.py +79 -0
- PySPlusthon/objects/reply_keyboard_button.py +27 -0
- PySPlusthon/objects/reply_keyboard_remove.py +10 -0
- PySPlusthon/objects/reply_markup.py +12 -0
- PySPlusthon/objects/shipping_address.py +22 -0
- PySPlusthon/objects/shipping_query.py +20 -0
- PySPlusthon/objects/sticker.py +54 -0
- PySPlusthon/objects/sticker_set.py +29 -0
- PySPlusthon/objects/transaction.py +25 -0
- PySPlusthon/objects/update.py +33 -0
- PySPlusthon/objects/user.py +60 -0
- PySPlusthon/objects/video.py +45 -0
- PySPlusthon/objects/voice.py +31 -0
- PySPlusthon/objects/webhook_info.py +16 -0
- PySPlusthon/proto/__init__.py +2 -0
- PySPlusthon/proto/enums_pb2.py +46 -0
- PySPlusthon/proto/enums_pb2.pyi +99 -0
- PySPlusthon/proto/enums_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/__init__.py +209 -0
- PySPlusthon/proto/requests/abacus_pb2.py +40 -0
- PySPlusthon/proto/requests/abacus_pb2.pyi +31 -0
- PySPlusthon/proto/requests/abacus_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/auth_pb2.py +49 -0
- PySPlusthon/proto/requests/auth_pb2.pyi +67 -0
- PySPlusthon/proto/requests/auth_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/configs_pb2.py +37 -0
- PySPlusthon/proto/requests/configs_pb2.pyi +15 -0
- PySPlusthon/proto/requests/configs_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/files_pb2.py +40 -0
- PySPlusthon/proto/requests/files_pb2.pyi +34 -0
- PySPlusthon/proto/requests/files_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/groups_pb2.py +82 -0
- PySPlusthon/proto/requests/groups_pb2.pyi +213 -0
- PySPlusthon/proto/requests/groups_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/messaging_pb2.py +56 -0
- PySPlusthon/proto/requests/messaging_pb2.pyi +119 -0
- PySPlusthon/proto/requests/messaging_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/presence_pb2.py +40 -0
- PySPlusthon/proto/requests/presence_pb2.pyi +24 -0
- PySPlusthon/proto/requests/presence_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/request_pb2.py +42 -0
- PySPlusthon/proto/requests/request_pb2.pyi +35 -0
- PySPlusthon/proto/requests/request_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/users_pb2.py +43 -0
- PySPlusthon/proto/requests/users_pb2.pyi +34 -0
- PySPlusthon/proto/requests/users_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/__init__.py +6 -0
- PySPlusthon/proto/responses/abacus_pb2.py +37 -0
- PySPlusthon/proto/responses/abacus_pb2.pyi +14 -0
- PySPlusthon/proto/responses/abacus_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/auth_pb2.py +42 -0
- PySPlusthon/proto/responses/auth_pb2.pyi +40 -0
- PySPlusthon/proto/responses/auth_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/files_pb2.py +39 -0
- PySPlusthon/proto/responses/files_pb2.pyi +27 -0
- PySPlusthon/proto/responses/files_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/groups_pb2.py +59 -0
- PySPlusthon/proto/responses/groups_pb2.pyi +90 -0
- PySPlusthon/proto/responses/groups_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/messaging_pb2.py +44 -0
- PySPlusthon/proto/responses/messaging_pb2.pyi +37 -0
- PySPlusthon/proto/responses/messaging_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/users_pb2.py +41 -0
- PySPlusthon/proto/responses/users_pb2.pyi +28 -0
- PySPlusthon/proto/responses/users_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/__init__.py +7 -0
- PySPlusthon/proto/structs/collections_pb2.py +54 -0
- PySPlusthon/proto/structs/collections_pb2.pyi +79 -0
- PySPlusthon/proto/structs/collections_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/files_pb2.py +52 -0
- PySPlusthon/proto/structs/files_pb2.pyi +93 -0
- PySPlusthon/proto/structs/files_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/groups_pb2.py +49 -0
- PySPlusthon/proto/structs/groups_pb2.pyi +144 -0
- PySPlusthon/proto/structs/groups_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/messaging_pb2.py +81 -0
- PySPlusthon/proto/structs/messaging_pb2.pyi +296 -0
- PySPlusthon/proto/structs/messaging_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/peers_pb2.py +47 -0
- PySPlusthon/proto/structs/peers_pb2.pyi +56 -0
- PySPlusthon/proto/structs/peers_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/set_updates_pb2.py +37 -0
- PySPlusthon/proto/structs/set_updates_pb2.pyi +15 -0
- PySPlusthon/proto/structs/set_updates_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/users_pb2.py +54 -0
- PySPlusthon/proto/structs/users_pb2.pyi +122 -0
- PySPlusthon/proto/structs/users_pb2_grpc.py +24 -0
- PySPlusthon/proto/updates/__init__.py +1 -0
- PySPlusthon/proto/updates/messaging_pb2.py +38 -0
- PySPlusthon/proto/updates/messaging_pb2.pyi +26 -0
- PySPlusthon/proto/updates/messaging_pb2_grpc.py +24 -0
- PySPlusthon/proto/ws_pb2.py +52 -0
- PySPlusthon/proto/ws_pb2.pyi +76 -0
- PySPlusthon/proto/ws_pb2_grpc.py +24 -0
- PySPlusthon/smart_call.py +73 -0
- PySPlusthon/states/__init__.py +3 -0
- PySPlusthon/states/state.py +11 -0
- PySPlusthon/states/state_group.py +13 -0
- PySPlusthon/states/state_machine.py +83 -0
- PySPlusthon/sync_support.py +48 -0
- pysplusthon-0.5.3.dist-info/METADATA +65 -0
- pysplusthon-0.5.3.dist-info/RECORD +284 -0
- pysplusthon-0.5.3.dist-info/WHEEL +5 -0
- pysplusthon-0.5.3.dist-info/licenses/LICENSE +19 -0
- pysplusthon-0.5.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: requests/files.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'requests/files.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from ..structs import peers_pb2 as structs_dot_peers__pb2
|
|
26
|
+
from ..structs import files_pb2 as structs_dot_files__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14requests/files.proto\x12\x08requests\x1a\x13structs/peers.proto\x1a\x13structs/files.proto\"\xca\x01\n\x15GetNasimFileUploadUrl\x12\x15\n\rexpected_size\x18\x01 \x01(\x05\x12\x0b\n\x03\x63rc\x18\x02 \x01(\x03\x12\x0b\n\x03uid\x18\x03 \x01(\x03\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x11\n\tmime_type\x18\x05 \x01(\t\x12 \n\x07\x65x_peer\x18\x06 \x01(\x0b\x32\x0f.structs.ExPeer\x12)\n\tsend_type\x18\x07 \x01(\x0b\x32\x16.structs.SendTypeValue\x12\x12\n\nchunk_size\x18\x08 \x01(\x03\"6\n\x0fGetNasimFileUrl\x12#\n\x04\x66ile\x18\x01 \x01(\x0b\x32\x15.structs.FileLocationb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'requests.files_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
DESCRIPTOR._loaded_options = None
|
|
36
|
+
_globals['_GETNASIMFILEUPLOADURL']._serialized_start=77
|
|
37
|
+
_globals['_GETNASIMFILEUPLOADURL']._serialized_end=279
|
|
38
|
+
_globals['_GETNASIMFILEURL']._serialized_start=281
|
|
39
|
+
_globals['_GETNASIMFILEURL']._serialized_end=335
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from ..structs import peers_pb2 as _peers_pb2
|
|
2
|
+
from ..structs import files_pb2 as _files_pb2
|
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
|
4
|
+
from google.protobuf import message as _message
|
|
5
|
+
from collections.abc import Mapping as _Mapping
|
|
6
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
7
|
+
|
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
|
+
|
|
10
|
+
class GetNasimFileUploadUrl(_message.Message):
|
|
11
|
+
__slots__ = ("expected_size", "crc", "uid", "name", "mime_type", "ex_peer", "send_type", "chunk_size")
|
|
12
|
+
EXPECTED_SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
CRC_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
UID_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
MIME_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
EX_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
SEND_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
CHUNK_SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
expected_size: int
|
|
21
|
+
crc: int
|
|
22
|
+
uid: int
|
|
23
|
+
name: str
|
|
24
|
+
mime_type: str
|
|
25
|
+
ex_peer: _peers_pb2.ExPeer
|
|
26
|
+
send_type: _files_pb2.SendTypeValue
|
|
27
|
+
chunk_size: int
|
|
28
|
+
def __init__(self, expected_size: _Optional[int] = ..., crc: _Optional[int] = ..., uid: _Optional[int] = ..., name: _Optional[str] = ..., mime_type: _Optional[str] = ..., ex_peer: _Optional[_Union[_peers_pb2.ExPeer, _Mapping]] = ..., send_type: _Optional[_Union[_files_pb2.SendTypeValue, _Mapping]] = ..., chunk_size: _Optional[int] = ...) -> None: ...
|
|
29
|
+
|
|
30
|
+
class GetNasimFileUrl(_message.Message):
|
|
31
|
+
__slots__ = ("file",)
|
|
32
|
+
FILE_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
file: _files_pb2.FileLocation
|
|
34
|
+
def __init__(self, file: _Optional[_Union[_files_pb2.FileLocation, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in requests/files_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: requests/groups.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'requests/groups.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from ..structs import peers_pb2 as structs_dot_peers__pb2
|
|
26
|
+
from ..structs import files_pb2 as structs_dot_files__pb2
|
|
27
|
+
from ..structs import collections_pb2 as structs_dot_collections__pb2
|
|
28
|
+
from ..structs import groups_pb2 as structs_dot_groups__pb2
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15requests/groups.proto\x12\x08requests\x1a\x13structs/peers.proto\x1a\x13structs/files.proto\x1a\x19structs/collections.proto\x1a\x14structs/groups.proto\"1\n\tJoinGroup\x12\r\n\x05token\x18\x01 \x01(\t\x12\x15\n\roptimizations\x18\x02 \x03(\x05\"E\n\x0fJoinPublicGroup\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12\x15\n\roptimizations\x18\x02 \x03(\x05\"p\n\nLeaveGroup\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12\x15\n\roptimizations\x18\x03 \x03(\x05\x12\x13\n\x0bmake_orphan\x18\x04 \x01(\x08\"3\n\x0cGetFullGroup\x12#\n\x04peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\"n\n\nPinMessage\x12\x16\n\x0esender_user_id\x18\x01 \x01(\x05\x12)\n\ngroup_peer\x18\x02 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\x0c\n\x04\x64\x61te\x18\x03 \x01(\x03\x12\x0f\n\x07msg_rid\x18\x04 \x01(\x03\"\x8e\x01\n\x0f\x45\x64itGroupAvatar\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12,\n\rfile_location\x18\x03 \x01(\x0b\x32\x15.structs.FileLocation\x12\x0b\n\x03rid\x18\x04 \x01(\x03\x12\x15\n\roptimizations\x18\x05 \x03(\x05\"7\n\x10LoadGroupAvatars\x12#\n\x04peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\"\x8a\x01\n\x11RemoveGroupAvatar\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\x0b\n\x03rid\x18\x04 \x01(\x03\x12\x15\n\roptimizations\x18\x05 \x03(\x05\x12&\n\tavatar_id\x18\x06 \x01(\x0b\x32\x13.structs.Int64Value\"n\n\x0e\x45\x64itGroupTitle\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\r\n\x05title\x18\x03 \x01(\t\x12\x0b\n\x03rid\x18\x04 \x01(\x03\x12\x15\n\roptimizations\x18\x05 \x03(\x05\"n\n\x0e\x45\x64itGroupAbout\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12\r\n\x05\x61\x62out\x18\x03 \x01(\t\x12\x15\n\roptimizations\x18\x05 \x03(\x05\"<\n\x0fRevokeInviteUrl\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\"q\n\tUnBanUser\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\"\n\x04user\x18\x02 \x01(\x0b\x32\x14.structs.UserOutPeer\x12\x15\n\roptimizations\x18\x03 \x03(\x05\"}\n\x08KickUser\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\"\n\x04user\x18\x03 \x01(\x0b\x32\x14.structs.UserOutPeer\x12\x0b\n\x03rid\x18\x04 \x01(\x03\x12\x15\n\roptimizations\x18\x05 \x03(\x05\">\n\x11GetGroupInviteUrl\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\"j\n\x0bInviteUsers\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12#\n\x05users\x18\x03 \x03(\x0b\x32\x14.structs.UserOutPeer\"\x8b\x01\n\x14SetMemberPermissions\x12$\n\x05group\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\"\n\x04user\x18\x02 \x01(\x0b\x32\x14.structs.UserOutPeer\x12)\n\x0bpermissions\x18\x03 \x01(\x0b\x32\x14.structs.Permissions\"\x82\x01\n\x0bLoadMembers\x12$\n\x05group\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\r\n\x05limit\x18\x02 \x01(\x05\x12\x0c\n\x04next\x18\x03 \x01(\x0c\x12\x30\n\tcondition\x18\x04 \x01(\x0b\x32\x1d.structs.LoadMembersCondition\"<\n\x14GetGroupMembersCount\x12$\n\x05group\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\"W\n\x0fRemoveSinglePin\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12\x0c\n\x04\x64\x61te\x18\x03 \x01(\x03\"6\n\tRemovePin\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\"e\n\x0fRemoveUserAdmin\x12)\n\ngroup_peer\x18\x01 \x01(\x0b\x32\x15.structs.GroupOutPeer\x12\'\n\tuser_peer\x18\x02 \x01(\x0b\x32\x14.structs.UserOutPeer\" \n\x0fGetGroupPreview\x12\r\n\x05token\x18\x01 \x01(\tb\x06proto3')
|
|
32
|
+
|
|
33
|
+
_globals = globals()
|
|
34
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'requests.groups_pb2', _globals)
|
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
+
DESCRIPTOR._loaded_options = None
|
|
38
|
+
_globals['_JOINGROUP']._serialized_start=126
|
|
39
|
+
_globals['_JOINGROUP']._serialized_end=175
|
|
40
|
+
_globals['_JOINPUBLICGROUP']._serialized_start=177
|
|
41
|
+
_globals['_JOINPUBLICGROUP']._serialized_end=246
|
|
42
|
+
_globals['_LEAVEGROUP']._serialized_start=248
|
|
43
|
+
_globals['_LEAVEGROUP']._serialized_end=360
|
|
44
|
+
_globals['_GETFULLGROUP']._serialized_start=362
|
|
45
|
+
_globals['_GETFULLGROUP']._serialized_end=413
|
|
46
|
+
_globals['_PINMESSAGE']._serialized_start=415
|
|
47
|
+
_globals['_PINMESSAGE']._serialized_end=525
|
|
48
|
+
_globals['_EDITGROUPAVATAR']._serialized_start=528
|
|
49
|
+
_globals['_EDITGROUPAVATAR']._serialized_end=670
|
|
50
|
+
_globals['_LOADGROUPAVATARS']._serialized_start=672
|
|
51
|
+
_globals['_LOADGROUPAVATARS']._serialized_end=727
|
|
52
|
+
_globals['_REMOVEGROUPAVATAR']._serialized_start=730
|
|
53
|
+
_globals['_REMOVEGROUPAVATAR']._serialized_end=868
|
|
54
|
+
_globals['_EDITGROUPTITLE']._serialized_start=870
|
|
55
|
+
_globals['_EDITGROUPTITLE']._serialized_end=980
|
|
56
|
+
_globals['_EDITGROUPABOUT']._serialized_start=982
|
|
57
|
+
_globals['_EDITGROUPABOUT']._serialized_end=1092
|
|
58
|
+
_globals['_REVOKEINVITEURL']._serialized_start=1094
|
|
59
|
+
_globals['_REVOKEINVITEURL']._serialized_end=1154
|
|
60
|
+
_globals['_UNBANUSER']._serialized_start=1156
|
|
61
|
+
_globals['_UNBANUSER']._serialized_end=1269
|
|
62
|
+
_globals['_KICKUSER']._serialized_start=1271
|
|
63
|
+
_globals['_KICKUSER']._serialized_end=1396
|
|
64
|
+
_globals['_GETGROUPINVITEURL']._serialized_start=1398
|
|
65
|
+
_globals['_GETGROUPINVITEURL']._serialized_end=1460
|
|
66
|
+
_globals['_INVITEUSERS']._serialized_start=1462
|
|
67
|
+
_globals['_INVITEUSERS']._serialized_end=1568
|
|
68
|
+
_globals['_SETMEMBERPERMISSIONS']._serialized_start=1571
|
|
69
|
+
_globals['_SETMEMBERPERMISSIONS']._serialized_end=1710
|
|
70
|
+
_globals['_LOADMEMBERS']._serialized_start=1713
|
|
71
|
+
_globals['_LOADMEMBERS']._serialized_end=1843
|
|
72
|
+
_globals['_GETGROUPMEMBERSCOUNT']._serialized_start=1845
|
|
73
|
+
_globals['_GETGROUPMEMBERSCOUNT']._serialized_end=1905
|
|
74
|
+
_globals['_REMOVESINGLEPIN']._serialized_start=1907
|
|
75
|
+
_globals['_REMOVESINGLEPIN']._serialized_end=1994
|
|
76
|
+
_globals['_REMOVEPIN']._serialized_start=1996
|
|
77
|
+
_globals['_REMOVEPIN']._serialized_end=2050
|
|
78
|
+
_globals['_REMOVEUSERADMIN']._serialized_start=2052
|
|
79
|
+
_globals['_REMOVEUSERADMIN']._serialized_end=2153
|
|
80
|
+
_globals['_GETGROUPPREVIEW']._serialized_start=2155
|
|
81
|
+
_globals['_GETGROUPPREVIEW']._serialized_end=2187
|
|
82
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
from ..structs import peers_pb2 as _peers_pb2
|
|
2
|
+
from ..structs import files_pb2 as _files_pb2
|
|
3
|
+
from ..structs import collections_pb2 as _collections_pb2
|
|
4
|
+
from ..structs import groups_pb2 as _groups_pb2
|
|
5
|
+
from google.protobuf.internal import containers as _containers
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
9
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
class JoinGroup(_message.Message):
|
|
14
|
+
__slots__ = ("token", "optimizations")
|
|
15
|
+
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
token: str
|
|
18
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
19
|
+
def __init__(self, token: _Optional[str] = ..., optimizations: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
20
|
+
|
|
21
|
+
class JoinPublicGroup(_message.Message):
|
|
22
|
+
__slots__ = ("peer", "optimizations")
|
|
23
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
peer: _peers_pb2.Peer
|
|
26
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
27
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., optimizations: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
28
|
+
|
|
29
|
+
class LeaveGroup(_message.Message):
|
|
30
|
+
__slots__ = ("group_peer", "rid", "optimizations", "make_orphan")
|
|
31
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
MAKE_ORPHAN_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
36
|
+
rid: int
|
|
37
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
38
|
+
make_orphan: bool
|
|
39
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., rid: _Optional[int] = ..., optimizations: _Optional[_Iterable[int]] = ..., make_orphan: bool = ...) -> None: ...
|
|
40
|
+
|
|
41
|
+
class GetFullGroup(_message.Message):
|
|
42
|
+
__slots__ = ("peer",)
|
|
43
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
peer: _peers_pb2.GroupOutPeer
|
|
45
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ...) -> None: ...
|
|
46
|
+
|
|
47
|
+
class PinMessage(_message.Message):
|
|
48
|
+
__slots__ = ("sender_user_id", "group_peer", "date", "msg_rid")
|
|
49
|
+
SENDER_USER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
DATE_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
MSG_RID_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
sender_user_id: int
|
|
54
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
55
|
+
date: int
|
|
56
|
+
msg_rid: int
|
|
57
|
+
def __init__(self, sender_user_id: _Optional[int] = ..., group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., date: _Optional[int] = ..., msg_rid: _Optional[int] = ...) -> None: ...
|
|
58
|
+
|
|
59
|
+
class EditGroupAvatar(_message.Message):
|
|
60
|
+
__slots__ = ("group_peer", "file_location", "rid", "optimizations")
|
|
61
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
FILE_LOCATION_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
66
|
+
file_location: _files_pb2.FileLocation
|
|
67
|
+
rid: int
|
|
68
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
69
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., file_location: _Optional[_Union[_files_pb2.FileLocation, _Mapping]] = ..., rid: _Optional[int] = ..., optimizations: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
70
|
+
|
|
71
|
+
class LoadGroupAvatars(_message.Message):
|
|
72
|
+
__slots__ = ("peer",)
|
|
73
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
peer: _peers_pb2.GroupOutPeer
|
|
75
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ...) -> None: ...
|
|
76
|
+
|
|
77
|
+
class RemoveGroupAvatar(_message.Message):
|
|
78
|
+
__slots__ = ("group_peer", "rid", "optimizations", "avatar_id")
|
|
79
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
81
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
AVATAR_ID_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
84
|
+
rid: int
|
|
85
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
86
|
+
avatar_id: _collections_pb2.Int64Value
|
|
87
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., rid: _Optional[int] = ..., optimizations: _Optional[_Iterable[int]] = ..., avatar_id: _Optional[_Union[_collections_pb2.Int64Value, _Mapping]] = ...) -> None: ...
|
|
88
|
+
|
|
89
|
+
class EditGroupTitle(_message.Message):
|
|
90
|
+
__slots__ = ("group_peer", "title", "rid", "optimizations")
|
|
91
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
TITLE_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
96
|
+
title: str
|
|
97
|
+
rid: int
|
|
98
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
99
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., title: _Optional[str] = ..., rid: _Optional[int] = ..., optimizations: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
100
|
+
|
|
101
|
+
class EditGroupAbout(_message.Message):
|
|
102
|
+
__slots__ = ("group_peer", "rid", "about", "optimizations")
|
|
103
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
ABOUT_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
108
|
+
rid: int
|
|
109
|
+
about: str
|
|
110
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
111
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., rid: _Optional[int] = ..., about: _Optional[str] = ..., optimizations: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
112
|
+
|
|
113
|
+
class RevokeInviteUrl(_message.Message):
|
|
114
|
+
__slots__ = ("group_peer",)
|
|
115
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
117
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ...) -> None: ...
|
|
118
|
+
|
|
119
|
+
class UnBanUser(_message.Message):
|
|
120
|
+
__slots__ = ("group_peer", "user", "optimizations")
|
|
121
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
122
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
123
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
125
|
+
user: _peers_pb2.UserOutPeer
|
|
126
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
127
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., user: _Optional[_Union[_peers_pb2.UserOutPeer, _Mapping]] = ..., optimizations: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
128
|
+
|
|
129
|
+
class KickUser(_message.Message):
|
|
130
|
+
__slots__ = ("group_peer", "user", "rid", "optimizations")
|
|
131
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
133
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
134
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
135
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
136
|
+
user: _peers_pb2.UserOutPeer
|
|
137
|
+
rid: int
|
|
138
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
139
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., user: _Optional[_Union[_peers_pb2.UserOutPeer, _Mapping]] = ..., rid: _Optional[int] = ..., optimizations: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
140
|
+
|
|
141
|
+
class GetGroupInviteUrl(_message.Message):
|
|
142
|
+
__slots__ = ("group_peer",)
|
|
143
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
145
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ...) -> None: ...
|
|
146
|
+
|
|
147
|
+
class InviteUsers(_message.Message):
|
|
148
|
+
__slots__ = ("group_peer", "rid", "users")
|
|
149
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
150
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
151
|
+
USERS_FIELD_NUMBER: _ClassVar[int]
|
|
152
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
153
|
+
rid: int
|
|
154
|
+
users: _containers.RepeatedCompositeFieldContainer[_peers_pb2.UserOutPeer]
|
|
155
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., rid: _Optional[int] = ..., users: _Optional[_Iterable[_Union[_peers_pb2.UserOutPeer, _Mapping]]] = ...) -> None: ...
|
|
156
|
+
|
|
157
|
+
class SetMemberPermissions(_message.Message):
|
|
158
|
+
__slots__ = ("group", "user", "permissions")
|
|
159
|
+
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
160
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
161
|
+
PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
|
|
162
|
+
group: _peers_pb2.GroupOutPeer
|
|
163
|
+
user: _peers_pb2.UserOutPeer
|
|
164
|
+
permissions: _groups_pb2.Permissions
|
|
165
|
+
def __init__(self, group: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., user: _Optional[_Union[_peers_pb2.UserOutPeer, _Mapping]] = ..., permissions: _Optional[_Union[_groups_pb2.Permissions, _Mapping]] = ...) -> None: ...
|
|
166
|
+
|
|
167
|
+
class LoadMembers(_message.Message):
|
|
168
|
+
__slots__ = ("group", "limit", "next", "condition")
|
|
169
|
+
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
170
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
171
|
+
NEXT_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
CONDITION_FIELD_NUMBER: _ClassVar[int]
|
|
173
|
+
group: _peers_pb2.GroupOutPeer
|
|
174
|
+
limit: int
|
|
175
|
+
next: bytes
|
|
176
|
+
condition: _groups_pb2.LoadMembersCondition
|
|
177
|
+
def __init__(self, group: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., limit: _Optional[int] = ..., next: _Optional[bytes] = ..., condition: _Optional[_Union[_groups_pb2.LoadMembersCondition, _Mapping]] = ...) -> None: ...
|
|
178
|
+
|
|
179
|
+
class GetGroupMembersCount(_message.Message):
|
|
180
|
+
__slots__ = ("group",)
|
|
181
|
+
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
182
|
+
group: _peers_pb2.GroupOutPeer
|
|
183
|
+
def __init__(self, group: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ...) -> None: ...
|
|
184
|
+
|
|
185
|
+
class RemoveSinglePin(_message.Message):
|
|
186
|
+
__slots__ = ("group_peer", "rid", "date")
|
|
187
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
188
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
189
|
+
DATE_FIELD_NUMBER: _ClassVar[int]
|
|
190
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
191
|
+
rid: int
|
|
192
|
+
date: int
|
|
193
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., rid: _Optional[int] = ..., date: _Optional[int] = ...) -> None: ...
|
|
194
|
+
|
|
195
|
+
class RemovePin(_message.Message):
|
|
196
|
+
__slots__ = ("group_peer",)
|
|
197
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
198
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
199
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ...) -> None: ...
|
|
200
|
+
|
|
201
|
+
class RemoveUserAdmin(_message.Message):
|
|
202
|
+
__slots__ = ("group_peer", "user_peer")
|
|
203
|
+
GROUP_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
204
|
+
USER_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
205
|
+
group_peer: _peers_pb2.GroupOutPeer
|
|
206
|
+
user_peer: _peers_pb2.UserOutPeer
|
|
207
|
+
def __init__(self, group_peer: _Optional[_Union[_peers_pb2.GroupOutPeer, _Mapping]] = ..., user_peer: _Optional[_Union[_peers_pb2.UserOutPeer, _Mapping]] = ...) -> None: ...
|
|
208
|
+
|
|
209
|
+
class GetGroupPreview(_message.Message):
|
|
210
|
+
__slots__ = ("token",)
|
|
211
|
+
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
212
|
+
token: str
|
|
213
|
+
def __init__(self, token: _Optional[str] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in requests/groups_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: requests/messaging.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'requests/messaging.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from ..structs import peers_pb2 as structs_dot_peers__pb2
|
|
26
|
+
from ..structs import messaging_pb2 as structs_dot_messaging__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18requests/messaging.proto\x12\x08requests\x1a\x13structs/peers.proto\x1a\x17structs/messaging.proto\"z\n\x0bSendMessage\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12!\n\x07message\x18\x03 \x01(\x0b\x32\x10.structs.Message\x12\x1e\n\x07\x65x_peer\x18\x06 \x01(\x0b\x32\r.structs.Peer\"d\n\rUpdateMessage\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12)\n\x0fupdated_message\x18\x03 \x01(\x0b\x32\x10.structs.Message\"r\n\rDeleteMessage\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12\x0c\n\x04rids\x18\x02 \x03(\x03\x12#\n\x05\x64\x61tes\x18\x03 \x01(\x0b\x32\x14.structs.DeleteDates\x12\x11\n\tjust_mine\x18\x04 \x01(\x08\"z\n\x0f\x46orwardMessages\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12\x0b\n\x03rid\x18\x02 \x03(\x03\x12=\n\x12\x66orwarded_messages\x18\x03 \x03(\x0b\x32!.structs.HistoryMessageIdentifier\"q\n\x0bLoadHistory\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12\x0c\n\x04\x64\x61te\x18\x02 \x01(\x03\x12\x11\n\tload_mode\x18\x04 \x01(\x05\x12\r\n\x05limit\x18\x05 \x01(\x05\x12\x15\n\roptimizations\x18\x06 \x03(\x05\"e\n\x0bPinMessages\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12&\n\nmessage_id\x18\x02 \x01(\x0b\x32\x12.structs.MessageId\x12\x11\n\tjust_mine\x18\x03 \x01(\x08\"d\n\rUnPinMessages\x12\x1d\n\x04peer\x18\x01 \x01(\x0b\x32\x0f.structs.ExPeer\x12\'\n\x0bmessage_ids\x18\x02 \x03(\x0b\x32\x12.structs.MessageId\x12\x0b\n\x03\x61ll\x18\x03 \x01(\x08\"3\n\x12LoadPinnedMessages\x12\x1d\n\x04peer\x18\x01 \x01(\x0b\x32\x0f.structs.ExPeer\"u\n\x15SendMultiMediaMessage\x12\x1d\n\x04peer\x18\x01 \x01(\x0b\x32\x0f.structs.ExPeer\x12)\n\x0bmulti_media\x18\x02 \x03(\x0b\x32\x14.structs.SingleMedia\x12\x12\n\ngrouped_id\x18\x04 \x01(\x04\"\x92\x01\n\x0bLoadDialogs\x12\x10\n\x08min_date\x18\x01 \x01(\x03\x12\r\n\x05limit\x18\x02 \x01(\x05\x12\x15\n\roptimizations\x18\x03 \x03(\x05\x12\x13\n\x0b\x64ialog_type\x18\x04 \x01(\x05\x12\x1e\n\x16\x65xclude_pinned_dialogs\x18\x05 \x01(\x08\x12\x16\n\x0e\x61rchive_filter\x18\x06 \x01(\x05\x62\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'requests.messaging_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
DESCRIPTOR._loaded_options = None
|
|
36
|
+
_globals['_SENDMESSAGE']._serialized_start=84
|
|
37
|
+
_globals['_SENDMESSAGE']._serialized_end=206
|
|
38
|
+
_globals['_UPDATEMESSAGE']._serialized_start=208
|
|
39
|
+
_globals['_UPDATEMESSAGE']._serialized_end=308
|
|
40
|
+
_globals['_DELETEMESSAGE']._serialized_start=310
|
|
41
|
+
_globals['_DELETEMESSAGE']._serialized_end=424
|
|
42
|
+
_globals['_FORWARDMESSAGES']._serialized_start=426
|
|
43
|
+
_globals['_FORWARDMESSAGES']._serialized_end=548
|
|
44
|
+
_globals['_LOADHISTORY']._serialized_start=550
|
|
45
|
+
_globals['_LOADHISTORY']._serialized_end=663
|
|
46
|
+
_globals['_PINMESSAGES']._serialized_start=665
|
|
47
|
+
_globals['_PINMESSAGES']._serialized_end=766
|
|
48
|
+
_globals['_UNPINMESSAGES']._serialized_start=768
|
|
49
|
+
_globals['_UNPINMESSAGES']._serialized_end=868
|
|
50
|
+
_globals['_LOADPINNEDMESSAGES']._serialized_start=870
|
|
51
|
+
_globals['_LOADPINNEDMESSAGES']._serialized_end=921
|
|
52
|
+
_globals['_SENDMULTIMEDIAMESSAGE']._serialized_start=923
|
|
53
|
+
_globals['_SENDMULTIMEDIAMESSAGE']._serialized_end=1040
|
|
54
|
+
_globals['_LOADDIALOGS']._serialized_start=1043
|
|
55
|
+
_globals['_LOADDIALOGS']._serialized_end=1189
|
|
56
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
from ..structs import peers_pb2 as _peers_pb2
|
|
2
|
+
from ..structs import messaging_pb2 as _messaging_pb2
|
|
3
|
+
from google.protobuf.internal import containers as _containers
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
7
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
8
|
+
|
|
9
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
|
+
|
|
11
|
+
class SendMessage(_message.Message):
|
|
12
|
+
__slots__ = ("peer", "rid", "message", "ex_peer")
|
|
13
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
EX_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
peer: _peers_pb2.Peer
|
|
18
|
+
rid: int
|
|
19
|
+
message: _messaging_pb2.Message
|
|
20
|
+
ex_peer: _peers_pb2.Peer
|
|
21
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., rid: _Optional[int] = ..., message: _Optional[_Union[_messaging_pb2.Message, _Mapping]] = ..., ex_peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ...) -> None: ...
|
|
22
|
+
|
|
23
|
+
class UpdateMessage(_message.Message):
|
|
24
|
+
__slots__ = ("peer", "rid", "updated_message")
|
|
25
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
UPDATED_MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
peer: _peers_pb2.Peer
|
|
29
|
+
rid: int
|
|
30
|
+
updated_message: _messaging_pb2.Message
|
|
31
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., rid: _Optional[int] = ..., updated_message: _Optional[_Union[_messaging_pb2.Message, _Mapping]] = ...) -> None: ...
|
|
32
|
+
|
|
33
|
+
class DeleteMessage(_message.Message):
|
|
34
|
+
__slots__ = ("peer", "rids", "dates", "just_mine")
|
|
35
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
RIDS_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
DATES_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
JUST_MINE_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
peer: _peers_pb2.Peer
|
|
40
|
+
rids: _containers.RepeatedScalarFieldContainer[int]
|
|
41
|
+
dates: _messaging_pb2.DeleteDates
|
|
42
|
+
just_mine: bool
|
|
43
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., rids: _Optional[_Iterable[int]] = ..., dates: _Optional[_Union[_messaging_pb2.DeleteDates, _Mapping]] = ..., just_mine: bool = ...) -> None: ...
|
|
44
|
+
|
|
45
|
+
class ForwardMessages(_message.Message):
|
|
46
|
+
__slots__ = ("peer", "rid", "forwarded_messages")
|
|
47
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
FORWARDED_MESSAGES_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
peer: _peers_pb2.Peer
|
|
51
|
+
rid: _containers.RepeatedScalarFieldContainer[int]
|
|
52
|
+
forwarded_messages: _containers.RepeatedCompositeFieldContainer[_messaging_pb2.HistoryMessageIdentifier]
|
|
53
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., rid: _Optional[_Iterable[int]] = ..., forwarded_messages: _Optional[_Iterable[_Union[_messaging_pb2.HistoryMessageIdentifier, _Mapping]]] = ...) -> None: ...
|
|
54
|
+
|
|
55
|
+
class LoadHistory(_message.Message):
|
|
56
|
+
__slots__ = ("peer", "date", "load_mode", "limit", "optimizations")
|
|
57
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
DATE_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
+
LOAD_MODE_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
peer: _peers_pb2.Peer
|
|
63
|
+
date: int
|
|
64
|
+
load_mode: int
|
|
65
|
+
limit: int
|
|
66
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
67
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., date: _Optional[int] = ..., load_mode: _Optional[int] = ..., limit: _Optional[int] = ..., optimizations: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
68
|
+
|
|
69
|
+
class PinMessages(_message.Message):
|
|
70
|
+
__slots__ = ("peer", "message_id", "just_mine")
|
|
71
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
MESSAGE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
JUST_MINE_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
peer: _peers_pb2.Peer
|
|
75
|
+
message_id: _messaging_pb2.MessageId
|
|
76
|
+
just_mine: bool
|
|
77
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., message_id: _Optional[_Union[_messaging_pb2.MessageId, _Mapping]] = ..., just_mine: bool = ...) -> None: ...
|
|
78
|
+
|
|
79
|
+
class UnPinMessages(_message.Message):
|
|
80
|
+
__slots__ = ("peer", "message_ids", "all")
|
|
81
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
MESSAGE_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
+
ALL_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
peer: _peers_pb2.ExPeer
|
|
85
|
+
message_ids: _containers.RepeatedCompositeFieldContainer[_messaging_pb2.MessageId]
|
|
86
|
+
all: bool
|
|
87
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.ExPeer, _Mapping]] = ..., message_ids: _Optional[_Iterable[_Union[_messaging_pb2.MessageId, _Mapping]]] = ..., all: bool = ...) -> None: ...
|
|
88
|
+
|
|
89
|
+
class LoadPinnedMessages(_message.Message):
|
|
90
|
+
__slots__ = ("peer",)
|
|
91
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
peer: _peers_pb2.ExPeer
|
|
93
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.ExPeer, _Mapping]] = ...) -> None: ...
|
|
94
|
+
|
|
95
|
+
class SendMultiMediaMessage(_message.Message):
|
|
96
|
+
__slots__ = ("peer", "multi_media", "grouped_id")
|
|
97
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
MULTI_MEDIA_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
GROUPED_ID_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
peer: _peers_pb2.ExPeer
|
|
101
|
+
multi_media: _containers.RepeatedCompositeFieldContainer[_messaging_pb2.SingleMedia]
|
|
102
|
+
grouped_id: int
|
|
103
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.ExPeer, _Mapping]] = ..., multi_media: _Optional[_Iterable[_Union[_messaging_pb2.SingleMedia, _Mapping]]] = ..., grouped_id: _Optional[int] = ...) -> None: ...
|
|
104
|
+
|
|
105
|
+
class LoadDialogs(_message.Message):
|
|
106
|
+
__slots__ = ("min_date", "limit", "optimizations", "dialog_type", "exclude_pinned_dialogs", "archive_filter")
|
|
107
|
+
MIN_DATE_FIELD_NUMBER: _ClassVar[int]
|
|
108
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
OPTIMIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
110
|
+
DIALOG_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
EXCLUDE_PINNED_DIALOGS_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
ARCHIVE_FILTER_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
min_date: int
|
|
114
|
+
limit: int
|
|
115
|
+
optimizations: _containers.RepeatedScalarFieldContainer[int]
|
|
116
|
+
dialog_type: int
|
|
117
|
+
exclude_pinned_dialogs: bool
|
|
118
|
+
archive_filter: int
|
|
119
|
+
def __init__(self, min_date: _Optional[int] = ..., limit: _Optional[int] = ..., optimizations: _Optional[_Iterable[int]] = ..., dialog_type: _Optional[int] = ..., exclude_pinned_dialogs: bool = ..., archive_filter: _Optional[int] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in requests/messaging_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|