PySPlusthon 0.5.3__tar.gz → 0.5.5__tar.gz
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-0.5.3 → pysplusthon-0.5.5}/PKG-INFO +2 -2
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/__init__.py +0 -2
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/send_animation.py +2 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/send_audio.py +2 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/send_contact.py +2 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/send_document.py +2 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/send_location.py +2 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/send_media_group.py +2 -1
- pysplusthon-0.5.5/PySPlusthon/client/attachments/send_photo.py +37 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/send_video.py +2 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/send_voice.py +2 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/client.py +1 -2
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/__init__.py +0 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon.egg-info/PKG-INFO +2 -2
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon.egg-info/SOURCES.txt +0 -8
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/README.md +1 -1
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/pyproject.toml +1 -1
- pysplusthon-0.5.3/PySPlusthon/client/attachments/send_photo.py +0 -67
- pysplusthon-0.5.3/PySPlusthon/client/attachments/send_sticker.py +0 -51
- pysplusthon-0.5.3/PySPlusthon/client/stickers/__init__.py +0 -9
- pysplusthon-0.5.3/PySPlusthon/client/stickers/add_sticker_to_set.py +0 -15
- pysplusthon-0.5.3/PySPlusthon/client/stickers/create_new_sticker_set.py +0 -16
- pysplusthon-0.5.3/PySPlusthon/client/stickers/delete_sticker_from_set.py +0 -10
- pysplusthon-0.5.3/PySPlusthon/client/stickers/get_sticker_set.py +0 -11
- pysplusthon-0.5.3/PySPlusthon/client/stickers/upload_sticker_file.py +0 -16
- pysplusthon-0.5.3/PySPlusthon/conditions/sticker.py +0 -7
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/LICENSE +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/get_file.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/attachments/upload_file.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/ban_chat_member.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/delete_chat_photo.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/get_chat.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/get_chat_administrators.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/get_chat_history.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/get_chat_member.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/get_chat_members.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/get_chat_members_count.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/join_chat.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/leave_chat.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/pin_chat_message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/promote_chat_member.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/restrict_chat_member.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/set_chat_description.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/set_chat_photo.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/set_chat_title.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/unban_chat_member.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/unpin_all_chat_messages.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/chats/unpin_chat_message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/invite_links/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/invite_links/create_chat_invite_link.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/invite_links/export_chat_invite_link.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/invite_links/revoke_chat_invite_link.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/answer_callback_query.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/copy_message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/delete_message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/edit_message_caption.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/edit_message_reply_markup.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/edit_message_text.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/forward_message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/send_message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/updates/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/updates/delete_webhook.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/updates/get_updates.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/updates/get_webhook_info.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/updates/set_webhook.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/users/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/users/ask_review.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/users/get_me.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/all.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/animation.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/at_state.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/audio.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/author.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/caption.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/channel.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/channel_chat_created.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/chat.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/click.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/command.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/condition.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/contact.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/content.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/delete_chat_photo.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/document.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/entities.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/equals.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/forward.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/group.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/group_chat_created.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/is_admin.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/is_instance.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/is_joined.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/left_chat_member.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/location.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/media.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/media_group.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/new_chat_members.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/new_chat_photo.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/new_chat_title.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/number.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/photo.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/pinned_message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/poll.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/private.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/regex.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/reply.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/supergroup_chat_created.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/text.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/video.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/conditions/voice.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/dispatcher/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/dispatcher/chain.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/dispatcher/dispatcher.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/dispatcher/logging_chain.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/dispatcher/monitoring_chain.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/dispatcher/printing_chain.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/enums/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/enums/chat_member_status.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/enums/chat_type.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/enums/message_media_type.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/enums/name_enum.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/enums/peer_type.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/enums/poll_type.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/enums/transaction_status.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/dispatching_errors/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/dispatching_errors/break_dispatching.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/dispatching_errors/continue_dispatching.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/bad_request_error.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/flood_error.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/forbidden_error.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/internal_error.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/not_found_error.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/rpc_error.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/too_many_requests.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/errors/rpc_errors/unauthorized_error.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/callback_query_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/command_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/connect_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/disconnect_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/edited_message_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/error_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/event_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/initialize_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/message_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/shipping_query_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/shutdown_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/event_handlers/update_handler.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/network/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/network/httpconnection.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/animation.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/audio.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/callback_query.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/chat.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/chat_member.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/chat_permissions.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/chat_photo.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/contact.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/date.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/document.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/edited_message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/entity.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/file.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/forward_origin.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/inline_keyboard.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/inline_keyboard_button.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/input_media.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/input_media_photo.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/input_media_video.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/invite_link.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/list.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/location.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/message.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/message_id.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/object.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/order_info.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/photo.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/poll.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/poll_option.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/reply_keyboard.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/reply_keyboard_button.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/reply_keyboard_remove.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/reply_markup.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/shipping_address.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/shipping_query.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/sticker.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/sticker_set.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/transaction.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/update.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/user.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/video.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/voice.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/objects/webhook_info.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/enums_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/enums_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/enums_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/abacus_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/abacus_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/abacus_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/auth_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/auth_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/auth_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/configs_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/configs_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/configs_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/files_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/files_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/files_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/groups_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/groups_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/groups_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/messaging_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/messaging_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/messaging_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/presence_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/presence_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/presence_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/request_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/request_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/request_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/users_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/users_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/requests/users_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/abacus_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/abacus_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/abacus_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/auth_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/auth_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/auth_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/files_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/files_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/files_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/groups_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/groups_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/groups_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/messaging_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/messaging_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/messaging_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/users_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/users_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/responses/users_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/collections_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/collections_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/collections_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/files_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/files_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/files_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/groups_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/groups_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/groups_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/messaging_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/messaging_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/messaging_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/peers_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/peers_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/peers_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/set_updates_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/set_updates_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/set_updates_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/users_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/users_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/structs/users_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/updates/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/updates/messaging_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/updates/messaging_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/updates/messaging_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/ws_pb2.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/ws_pb2.pyi +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/proto/ws_pb2_grpc.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/smart_call.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/states/__init__.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/states/state.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/states/state_group.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/states/state_machine.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/sync_support.py +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon.egg-info/dependency_links.txt +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon.egg-info/requires.txt +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon.egg-info/top_level.txt +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/setup.cfg +0 -0
- {pysplusthon-0.5.3 → pysplusthon-0.5.5}/tests/test_bot.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PySPlusthon
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.5
|
|
4
4
|
Summary: a Python library for Soroush Plus Bot API
|
|
5
5
|
Author-email: Mohammad Saleh Peyravi <akhbari87@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -39,7 +39,7 @@ if __name__ == "__main__":
|
|
|
39
39
|
|
|
40
40
|
## Key Features
|
|
41
41
|
|
|
42
|
-
- **Full Bot API Support**: Send messages, photos, videos, documents, audio, voice,
|
|
42
|
+
- **Full Bot API Support**: Send messages, photos, videos, documents, audio, voice, locations, contacts, and more
|
|
43
43
|
- **Update Handling**: Polling and webhook support with `start_polling()` and `set_webhook()`
|
|
44
44
|
- **Conditional Handlers**: Message filters using conditions (`text`, `command`, `document`, `photo`, `video`, `voice`, and more)
|
|
45
45
|
- **Event Handlers**: Connect, disconnect, initialize, shutdown, edited messages, callback queries, errors, and custom events
|
|
@@ -2,7 +2,6 @@ from .send_photo import SendPhoto
|
|
|
2
2
|
from .send_animation import SendAnimation
|
|
3
3
|
from .send_audio import SendAudio
|
|
4
4
|
from .send_document import SendDocument
|
|
5
|
-
from .send_sticker import SendSticker
|
|
6
5
|
from .send_video import SendVideo
|
|
7
6
|
from .send_voice import SendVoice
|
|
8
7
|
from .send_location import SendLocation
|
|
@@ -19,7 +18,6 @@ class Attachments(
|
|
|
19
18
|
SendDocument,
|
|
20
19
|
SendVideo,
|
|
21
20
|
SendVoice,
|
|
22
|
-
SendSticker,
|
|
23
21
|
SendLocation,
|
|
24
22
|
SendContact,
|
|
25
23
|
SendMediaGroup,
|
|
@@ -24,7 +24,8 @@ class SendAnimation:
|
|
|
24
24
|
height: int = None,
|
|
25
25
|
caption: str = None,
|
|
26
26
|
reply_markup: ReplyMarkup = None,
|
|
27
|
-
reply_to_message_id: int = None
|
|
27
|
+
reply_to_message_id: int = None,
|
|
28
|
+
parse_mode: str = None
|
|
28
29
|
) -> Message:
|
|
29
30
|
animation = resolve_media(animation)
|
|
30
31
|
filename = _extract_filename_media(animation)
|
|
@@ -15,7 +15,8 @@ class SendContact:
|
|
|
15
15
|
last_name: str = None,
|
|
16
16
|
vcard : bytes = None,
|
|
17
17
|
reply_markup: ReplyMarkup = None,
|
|
18
|
-
reply_to_message_id: int = None
|
|
18
|
+
reply_to_message_id: int = None,
|
|
19
|
+
parse_mode: str = None
|
|
19
20
|
) -> Message:
|
|
20
21
|
if self.is_userbot():
|
|
21
22
|
from PySPlusthon.proto import requests, structs
|
|
@@ -23,7 +23,8 @@ class SendDocument:
|
|
|
23
23
|
document: Union[str, bytes, BinaryIO, InputMedia],
|
|
24
24
|
caption: str = None,
|
|
25
25
|
reply_markup: ReplyMarkup = None,
|
|
26
|
-
reply_to_message_id: int = None
|
|
26
|
+
reply_to_message_id: int = None,
|
|
27
|
+
parse_mode: str = None
|
|
27
28
|
) -> Message:
|
|
28
29
|
document = resolve_media(document)
|
|
29
30
|
filename = _extract_filename(document)
|
|
@@ -13,7 +13,8 @@ class SendLocation:
|
|
|
13
13
|
latitude: float,
|
|
14
14
|
longitude: float,
|
|
15
15
|
reply_markup: ReplyMarkup = None,
|
|
16
|
-
reply_to_message_id: int = None
|
|
16
|
+
reply_to_message_id: int = None,
|
|
17
|
+
parse_mode: str = None
|
|
17
18
|
) -> Message:
|
|
18
19
|
if self.is_userbot():
|
|
19
20
|
from PySPlusthon.proto import requests, structs
|
|
@@ -14,7 +14,8 @@ class SendMediaGroup:
|
|
|
14
14
|
chat_id: Union[int, str],
|
|
15
15
|
media: List["objects.InputMedia"],
|
|
16
16
|
reply_markup: ReplyMarkup = None,
|
|
17
|
-
reply_to_message_id: int = None
|
|
17
|
+
reply_to_message_id: int = None,
|
|
18
|
+
parse_mode: str = None
|
|
18
19
|
) -> List[Message]:
|
|
19
20
|
if self.is_userbot():
|
|
20
21
|
from ...proto import requests, structs, enums
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from typing import Union, BinaryIO, Optional
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
import PySPlusthon
|
|
5
|
+
from ...objects import InputMedia, resolve_media, Message, ReplyMarkup
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def _extract_filename_media(media) -> Optional[str]:
|
|
9
|
+
if isinstance(media, InputMedia):
|
|
10
|
+
return getattr(media.media, 'name', None) if hasattr(media.media, 'name') else None
|
|
11
|
+
if isinstance(media, str):
|
|
12
|
+
return os.path.basename(media)
|
|
13
|
+
return None
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class SendPhoto:
|
|
17
|
+
|
|
18
|
+
async def send_photo(
|
|
19
|
+
self: "PySPlusthon.Client",
|
|
20
|
+
chat_id: Union[int, str],
|
|
21
|
+
photo: Union[str, bytes, BinaryIO, InputMedia],
|
|
22
|
+
caption: str = None,
|
|
23
|
+
reply_markup: ReplyMarkup = None,
|
|
24
|
+
reply_to_message_id: int = None,
|
|
25
|
+
parse_mode: str = None
|
|
26
|
+
) -> Message:
|
|
27
|
+
photo = resolve_media(photo)
|
|
28
|
+
filename = _extract_filename_media(photo)
|
|
29
|
+
chat_id = await self.resolve_peer_id(chat_id)
|
|
30
|
+
params = {"chat_id": chat_id, "photo": photo}
|
|
31
|
+
if caption is not None:
|
|
32
|
+
params["caption"] = caption
|
|
33
|
+
if filename is not None:
|
|
34
|
+
params["filename"] = filename
|
|
35
|
+
if parse_mode is not None:
|
|
36
|
+
params['parse_mode'] = parse_mode
|
|
37
|
+
return await self.auto_execute("sendPhoto", params)
|
|
@@ -17,7 +17,6 @@ from .users import Users
|
|
|
17
17
|
from .attachments import Attachments
|
|
18
18
|
from .chats import Chats
|
|
19
19
|
from .invite_links import InviteLinks
|
|
20
|
-
from .stickers import Stickers
|
|
21
20
|
from ..objects import Object, wrap, unwrap, Chat, User, Message
|
|
22
21
|
from ..errors import TooManyRequestsError, RPCError
|
|
23
22
|
from ..network import HTTPConnection
|
|
@@ -28,7 +27,7 @@ from ..event_handlers import ConnectHandler, DisconnectHandler, InitializeHandle
|
|
|
28
27
|
|
|
29
28
|
|
|
30
29
|
@add_sync_support_to_object
|
|
31
|
-
class Client(Chain, Messages, Updates, Users, Attachments, Chats, InviteLinks
|
|
30
|
+
class Client(Chain, Messages, Updates, Users, Attachments, Chats, InviteLinks):
|
|
32
31
|
WORKDIR = Path(sys.argv[0]).parent
|
|
33
32
|
|
|
34
33
|
def __init__(
|
|
@@ -35,7 +35,6 @@ from .author import Author as author
|
|
|
35
35
|
from .equals import Equals as equals
|
|
36
36
|
from .content import content
|
|
37
37
|
from .media_group import media_group
|
|
38
|
-
from .sticker import sticker
|
|
39
38
|
from .number import number
|
|
40
39
|
from .click import Click as click
|
|
41
40
|
from .audio import audio
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PySPlusthon
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.5
|
|
4
4
|
Summary: a Python library for Soroush Plus Bot API
|
|
5
5
|
Author-email: Mohammad Saleh Peyravi <akhbari87@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -39,7 +39,7 @@ if __name__ == "__main__":
|
|
|
39
39
|
|
|
40
40
|
## Key Features
|
|
41
41
|
|
|
42
|
-
- **Full Bot API Support**: Send messages, photos, videos, documents, audio, voice,
|
|
42
|
+
- **Full Bot API Support**: Send messages, photos, videos, documents, audio, voice, locations, contacts, and more
|
|
43
43
|
- **Update Handling**: Polling and webhook support with `start_polling()` and `set_webhook()`
|
|
44
44
|
- **Conditional Handlers**: Message filters using conditions (`text`, `command`, `document`, `photo`, `video`, `voice`, and more)
|
|
45
45
|
- **Event Handlers**: Connect, disconnect, initialize, shutdown, edited messages, callback queries, errors, and custom events
|
|
@@ -20,7 +20,6 @@ PySPlusthon/client/attachments/send_document.py
|
|
|
20
20
|
PySPlusthon/client/attachments/send_location.py
|
|
21
21
|
PySPlusthon/client/attachments/send_media_group.py
|
|
22
22
|
PySPlusthon/client/attachments/send_photo.py
|
|
23
|
-
PySPlusthon/client/attachments/send_sticker.py
|
|
24
23
|
PySPlusthon/client/attachments/send_video.py
|
|
25
24
|
PySPlusthon/client/attachments/send_voice.py
|
|
26
25
|
PySPlusthon/client/attachments/upload_file.py
|
|
@@ -57,12 +56,6 @@ PySPlusthon/client/messages/edit_message_reply_markup.py
|
|
|
57
56
|
PySPlusthon/client/messages/edit_message_text.py
|
|
58
57
|
PySPlusthon/client/messages/forward_message.py
|
|
59
58
|
PySPlusthon/client/messages/send_message.py
|
|
60
|
-
PySPlusthon/client/stickers/__init__.py
|
|
61
|
-
PySPlusthon/client/stickers/add_sticker_to_set.py
|
|
62
|
-
PySPlusthon/client/stickers/create_new_sticker_set.py
|
|
63
|
-
PySPlusthon/client/stickers/delete_sticker_from_set.py
|
|
64
|
-
PySPlusthon/client/stickers/get_sticker_set.py
|
|
65
|
-
PySPlusthon/client/stickers/upload_sticker_file.py
|
|
66
59
|
PySPlusthon/client/updates/__init__.py
|
|
67
60
|
PySPlusthon/client/updates/delete_webhook.py
|
|
68
61
|
PySPlusthon/client/updates/get_updates.py
|
|
@@ -110,7 +103,6 @@ PySPlusthon/conditions/poll.py
|
|
|
110
103
|
PySPlusthon/conditions/private.py
|
|
111
104
|
PySPlusthon/conditions/regex.py
|
|
112
105
|
PySPlusthon/conditions/reply.py
|
|
113
|
-
PySPlusthon/conditions/sticker.py
|
|
114
106
|
PySPlusthon/conditions/supergroup_chat_created.py
|
|
115
107
|
PySPlusthon/conditions/text.py
|
|
116
108
|
PySPlusthon/conditions/video.py
|
|
@@ -22,7 +22,7 @@ if __name__ == "__main__":
|
|
|
22
22
|
|
|
23
23
|
## Key Features
|
|
24
24
|
|
|
25
|
-
- **Full Bot API Support**: Send messages, photos, videos, documents, audio, voice,
|
|
25
|
+
- **Full Bot API Support**: Send messages, photos, videos, documents, audio, voice, locations, contacts, and more
|
|
26
26
|
- **Update Handling**: Polling and webhook support with `start_polling()` and `set_webhook()`
|
|
27
27
|
- **Conditional Handlers**: Message filters using conditions (`text`, `command`, `document`, `photo`, `video`, `voice`, and more)
|
|
28
28
|
- **Event Handlers**: Connect, disconnect, initialize, shutdown, edited messages, callback queries, errors, and custom events
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
from typing import Union, BinaryIO, Optional
|
|
2
|
-
import os
|
|
3
|
-
|
|
4
|
-
import PySPlusthon
|
|
5
|
-
from ...objects import InputMedia, resolve_media, Message, ReplyMarkup
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def _extract_filename_media(media) -> Optional[str]:
|
|
9
|
-
if isinstance(media, InputMedia):
|
|
10
|
-
return getattr(media.media, 'name', None) if hasattr(media.media, 'name') else None
|
|
11
|
-
if isinstance(media, str):
|
|
12
|
-
return os.path.basename(media)
|
|
13
|
-
return None
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class SendPhoto:
|
|
17
|
-
|
|
18
|
-
async def send_photo(
|
|
19
|
-
self: "PySPlusthon.Client",
|
|
20
|
-
chat_id: Union[int, str],
|
|
21
|
-
photo: Union[str, bytes, BinaryIO, InputMedia],
|
|
22
|
-
caption: str = None,
|
|
23
|
-
reply_markup: ReplyMarkup = None,
|
|
24
|
-
reply_to_message_id: int = None
|
|
25
|
-
) -> Message:
|
|
26
|
-
photo = resolve_media(photo)
|
|
27
|
-
filename = _extract_filename_media(photo)
|
|
28
|
-
|
|
29
|
-
if self.is_userbot():
|
|
30
|
-
from ...proto import requests, structs, enums
|
|
31
|
-
peer_id, peer_type = map(int, chat_id.split("|"))
|
|
32
|
-
file = await self.upload_file(chat_id, photo, enums.SEND_TYPE_PHOTO)
|
|
33
|
-
return await self.execute(requests.SendMessage(
|
|
34
|
-
peer=structs.Peer(
|
|
35
|
-
type=peer_type,
|
|
36
|
-
id=peer_id
|
|
37
|
-
),
|
|
38
|
-
rid=self.ws_connection.create_rid(),
|
|
39
|
-
message=structs.Message(
|
|
40
|
-
document_message=structs.DocumentMessage(
|
|
41
|
-
file_id=file.id,
|
|
42
|
-
access_hash=peer_id,
|
|
43
|
-
file_size=file.size,
|
|
44
|
-
name=file.name,
|
|
45
|
-
mime_type=file.mime_type,
|
|
46
|
-
ext=structs.DocumentEx(
|
|
47
|
-
document_ex_photo=structs.DocumentExPhoto(
|
|
48
|
-
w=100,
|
|
49
|
-
h=100
|
|
50
|
-
)
|
|
51
|
-
),
|
|
52
|
-
caption=structs.TextMessage(text=caption)
|
|
53
|
-
)
|
|
54
|
-
),
|
|
55
|
-
ex_peer=structs.Peer(
|
|
56
|
-
type=peer_type,
|
|
57
|
-
id=peer_id
|
|
58
|
-
)
|
|
59
|
-
))
|
|
60
|
-
|
|
61
|
-
chat_id = await self.resolve_peer_id(chat_id)
|
|
62
|
-
params = {"chat_id": chat_id, "photo": photo}
|
|
63
|
-
if caption is not None:
|
|
64
|
-
params["caption"] = caption
|
|
65
|
-
if filename is not None:
|
|
66
|
-
params["filename"] = filename
|
|
67
|
-
return await self.auto_execute("sendPhoto", params)
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
from typing import Union, BinaryIO
|
|
2
|
-
|
|
3
|
-
import PySPlusthon
|
|
4
|
-
from ...objects import InputMedia, resolve_media, Message, ReplyMarkup
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class SendSticker:
|
|
8
|
-
|
|
9
|
-
async def send_sticker(
|
|
10
|
-
self: "PySPlusthon.Client",
|
|
11
|
-
chat_id: Union[int, str],
|
|
12
|
-
sticker: Union[str, bytes, BinaryIO, InputMedia],
|
|
13
|
-
reply_markup: ReplyMarkup = None,
|
|
14
|
-
reply_to_message_id: int = None
|
|
15
|
-
) -> Message:
|
|
16
|
-
if self.is_userbot():
|
|
17
|
-
from ...proto import requests, structs
|
|
18
|
-
peer_id, peer_type = map(int, chat_id.split("|"))
|
|
19
|
-
file_id, access_hash, file_storage_version, sticker_id, collection_id = map(int, sticker.split(":"))
|
|
20
|
-
return await self.execute(requests.SendMessage(
|
|
21
|
-
peer=structs.Peer(
|
|
22
|
-
type=peer_type,
|
|
23
|
-
id=peer_id
|
|
24
|
-
),
|
|
25
|
-
rid=self.ws_connection.create_rid(),
|
|
26
|
-
message=structs.Message(
|
|
27
|
-
sticker_message=structs.StickerMessage(
|
|
28
|
-
sticker_id=structs.Int32Value(
|
|
29
|
-
value=sticker_id,
|
|
30
|
-
),
|
|
31
|
-
image512=structs.ImageLocation(
|
|
32
|
-
file_location=structs.FileLocation(
|
|
33
|
-
file_id=file_id,
|
|
34
|
-
access_hash=access_hash,
|
|
35
|
-
file_storage_version=structs.Int32Value(value=file_storage_version)
|
|
36
|
-
)
|
|
37
|
-
),
|
|
38
|
-
sticker_collection_id=structs.Int32Value(
|
|
39
|
-
value=collection_id
|
|
40
|
-
)
|
|
41
|
-
),
|
|
42
|
-
),
|
|
43
|
-
ex_peer=structs.Peer(
|
|
44
|
-
type=peer_type,
|
|
45
|
-
id=peer_id
|
|
46
|
-
)
|
|
47
|
-
))
|
|
48
|
-
|
|
49
|
-
chat_id = await self.resolve_peer_id(chat_id)
|
|
50
|
-
sticker = resolve_media(sticker)
|
|
51
|
-
return await self.auto_execute("sendSticker", locals())
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
from .delete_sticker_from_set import DeleteStickerFromSet
|
|
2
|
-
from .get_sticker_set import GetStickerSet
|
|
3
|
-
from .create_new_sticker_set import CreateNewStickerSet
|
|
4
|
-
from .upload_sticker_file import UploadStickerFile
|
|
5
|
-
from .add_sticker_to_set import AddStickerToSet
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class Stickers(GetStickerSet, CreateNewStickerSet, DeleteStickerFromSet, UploadStickerFile, AddStickerToSet):
|
|
9
|
-
pass
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from typing import Union
|
|
2
|
-
|
|
3
|
-
import PySPlusthon
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AddStickerToSet:
|
|
7
|
-
|
|
8
|
-
async def add_sticker_to_set(
|
|
9
|
-
self: "PySPlusthon.Client",
|
|
10
|
-
user_id: Union[int, str],
|
|
11
|
-
name: str,
|
|
12
|
-
sticker: str
|
|
13
|
-
) -> bool:
|
|
14
|
-
user_id = await self.resolve_peer_id(user_id)
|
|
15
|
-
return await self.auto_execute("addStickerToSet", locals())
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
from typing import Union
|
|
2
|
-
|
|
3
|
-
import PySPlusthon
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class CreateNewStickerSet:
|
|
7
|
-
|
|
8
|
-
async def create_new_sticker_set(
|
|
9
|
-
self: "PySPlusthon.Client",
|
|
10
|
-
user_id: Union[int, str],
|
|
11
|
-
name: str,
|
|
12
|
-
title: str,
|
|
13
|
-
sticker=None
|
|
14
|
-
) -> bool:
|
|
15
|
-
user_id = await self.resolve_peer_id(user_id)
|
|
16
|
-
return await self.auto_execute("createNewStickerSet", locals())
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
from typing import Union, BinaryIO
|
|
2
|
-
|
|
3
|
-
import PySPlusthon
|
|
4
|
-
from ...objects import InputMedia, resolve_media
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class UploadStickerFile:
|
|
8
|
-
|
|
9
|
-
async def upload_sticker_file(
|
|
10
|
-
self: "PySPlusthon.Client",
|
|
11
|
-
user_id: Union[int, str],
|
|
12
|
-
sticker: Union[str, bytes, BinaryIO, InputMedia]
|
|
13
|
-
) -> str:
|
|
14
|
-
user_id = await self.resolve_peer_id(user_id)
|
|
15
|
-
sticker = resolve_media(sticker)
|
|
16
|
-
return await self.auto_execute("uploadStickerFile", locals())
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/invite_links/create_chat_invite_link.py
RENAMED
|
File without changes
|
{pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/invite_links/export_chat_invite_link.py
RENAMED
|
File without changes
|
{pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/invite_links/revoke_chat_invite_link.py
RENAMED
|
File without changes
|
|
File without changes
|
{pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/answer_callback_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pysplusthon-0.5.3 → pysplusthon-0.5.5}/PySPlusthon/client/messages/edit_message_reply_markup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|