|
3 | 3 | UnsupportedBotAPIVersionError, |
4 | 4 | ) |
5 | 5 | from pybotx.bot.api.responses.bot_disabled import ( |
| 6 | + BotAPIBotDisabledErrorData, |
6 | 7 | BotAPIBotDisabledResponse, |
7 | 8 | build_bot_disabled_response, |
8 | 9 | ) |
9 | 10 | from pybotx.bot.api.responses.command_accepted import build_command_accepted_response |
| 11 | +from pybotx.bot.api.responses.unverified_request import ( |
| 12 | + BotAPIUnverifiedRequestErrorData, |
| 13 | + BotAPIUnverifiedRequestResponse, |
| 14 | + build_unverified_request_response, |
| 15 | +) |
10 | 16 | from pybotx.bot.bot import Bot |
11 | 17 | from pybotx.bot.callbacks.callback_repo_proto import CallbackRepoProto |
12 | 18 | from pybotx.bot.exceptions import ( |
13 | 19 | AnswerDestinationLookupError, |
14 | 20 | BotShuttingDownError, |
15 | 21 | BotXMethodCallbackNotFoundError, |
| 22 | + RequestHeadersNotProvidedError, |
16 | 23 | UnknownBotAccountError, |
| 24 | + UnverifiedRequestError, |
| 25 | +) |
| 26 | +from pybotx.bot.handler import ( |
| 27 | + IncomingMessageHandlerFunc, |
| 28 | + Middleware, |
| 29 | + SyncSmartAppEventHandlerFunc, |
17 | 30 | ) |
18 | | -from pybotx.bot.handler import IncomingMessageHandlerFunc, Middleware |
19 | 31 | from pybotx.bot.handler_collector import HandlerCollector |
20 | 32 | from pybotx.bot.testing import lifespan_wrapper |
21 | 33 | from pybotx.client.exceptions.callbacks import ( |
|
40 | 52 | InvalidBotXResponsePayloadError, |
41 | 53 | InvalidBotXStatusCodeError, |
42 | 54 | ) |
| 55 | +from pybotx.client.exceptions.message import MessageNotFoundError |
43 | 56 | from pybotx.client.exceptions.notifications import ( |
44 | 57 | BotIsNotChatMemberError, |
45 | 58 | FinalRecipientsListEmptyError, |
46 | 59 | StealthModeDisabledError, |
47 | 60 | ) |
48 | 61 | from pybotx.client.exceptions.users import UserNotFoundError |
| 62 | +from pybotx.client.smartapps_api.exceptions import SyncSmartAppEventHandlerNotFoundError |
| 63 | +from pybotx.client.smartapps_api.smartapp_manifest import ( |
| 64 | + SmartappManifest, |
| 65 | + SmartappManifestAndroidParams, |
| 66 | + SmartappManifestAuroraParams, |
| 67 | + SmartappManifestIosParams, |
| 68 | + SmartappManifestUnreadCounterParams, |
| 69 | + SmartappManifestWebParams, |
| 70 | +) |
49 | 71 | from pybotx.client.stickers_api.exceptions import ( |
50 | 72 | InvalidEmojiError, |
51 | 73 | InvalidImageError, |
|
61 | 83 | OutgoingAttachment, |
62 | 84 | ) |
63 | 85 | from pybotx.models.bot_account import BotAccount, BotAccountWithSecret |
| 86 | +from pybotx.models.bot_catalog import BotsListItem |
64 | 87 | from pybotx.models.bot_sender import BotSender |
65 | 88 | from pybotx.models.chats import Chat, ChatInfo, ChatInfoMember, ChatListItem |
66 | 89 | from pybotx.models.enums import ( |
67 | 90 | AttachmentTypes, |
68 | 91 | ChatTypes, |
69 | 92 | ClientPlatforms, |
70 | 93 | MentionTypes, |
| 94 | + SmartappManifestWebLayoutChoices, |
71 | 95 | SyncSourceTypes, |
72 | 96 | UserKinds, |
73 | 97 | ) |
|
103 | 127 | from pybotx.models.smartapps import SmartApp |
104 | 128 | from pybotx.models.status import BotMenu, StatusRecipient |
105 | 129 | from pybotx.models.stickers import Sticker, StickerPack |
| 130 | +from pybotx.models.sync_smartapp_event import ( |
| 131 | + BotAPISyncSmartAppEventErrorResponse, |
| 132 | + BotAPISyncSmartAppEventResponse, |
| 133 | + BotAPISyncSmartAppEventResultResponse, |
| 134 | +) |
106 | 135 | from pybotx.models.system_events.added_to_chat import AddedToChatEvent |
107 | 136 | from pybotx.models.system_events.chat_created import ChatCreatedEvent, ChatCreatedMember |
| 137 | +from pybotx.models.system_events.chat_deleted_by_user import ChatDeletedByUserEvent |
108 | 138 | from pybotx.models.system_events.cts_login import CTSLoginEvent |
109 | 139 | from pybotx.models.system_events.cts_logout import CTSLogoutEvent |
110 | 140 | from pybotx.models.system_events.deleted_from_chat import DeletedFromChatEvent |
| 141 | +from pybotx.models.system_events.event_edit import EventEdit |
111 | 142 | from pybotx.models.system_events.internal_bot_notification import ( |
112 | 143 | InternalBotNotificationEvent, |
113 | 144 | ) |
|
118 | 149 | __all__ = ( |
119 | 150 | "AddedToChatEvent", |
120 | 151 | "AnswerDestinationLookupError", |
121 | | - "AttachmentTypes", |
122 | 152 | "AttachmentDocument", |
123 | 153 | "AttachmentImage", |
124 | | - "AttachmentVoice", |
| 154 | + "AttachmentTypes", |
125 | 155 | "AttachmentVideo", |
| 156 | + "AttachmentVoice", |
126 | 157 | "Bot", |
| 158 | + "BotAPIBotDisabledErrorData", |
127 | 159 | "BotAPIBotDisabledResponse", |
128 | 160 | "BotAPIMethodFailedCallback", |
| 161 | + "BotAPISyncSmartAppEventErrorResponse", |
| 162 | + "BotAPISyncSmartAppEventResponse", |
| 163 | + "BotAPISyncSmartAppEventResultResponse", |
| 164 | + "BotAPIUnverifiedRequestErrorData", |
| 165 | + "BotAPIUnverifiedRequestResponse", |
129 | 166 | "BotAccount", |
130 | 167 | "BotAccountWithSecret", |
131 | 168 | "BotIsNotChatMemberError", |
|
134 | 171 | "BotShuttingDownError", |
135 | 172 | "BotXMethodCallbackNotFoundError", |
136 | 173 | "BotXMethodFailedCallbackReceivedError", |
| 174 | + "BotsListItem", |
137 | 175 | "BubbleMarkup", |
138 | 176 | "Button", |
139 | 177 | "ButtonRow", |
|
148 | 186 | "ChatCreatedMember", |
149 | 187 | "ChatCreationError", |
150 | 188 | "ChatCreationProhibitedError", |
| 189 | + "ChatDeletedByUserEvent", |
151 | 190 | "ChatInfo", |
152 | 191 | "ChatInfoMember", |
153 | 192 | "ChatListItem", |
|
157 | 196 | "DeletedFromChatEvent", |
158 | 197 | "Document", |
159 | 198 | "EditMessage", |
| 199 | + "EventEdit", |
160 | 200 | "EventNotFoundError", |
161 | 201 | "File", |
162 | 202 | "FileDeletedError", |
|
185 | 225 | "MentionList", |
186 | 226 | "MentionTypes", |
187 | 227 | "MentionUser", |
| 228 | + "MessageNotFoundError", |
188 | 229 | "MessageStatus", |
189 | 230 | "Middleware", |
190 | 231 | "OutgoingAttachment", |
|
193 | 234 | "RateLimitReachedError", |
194 | 235 | "Reply", |
195 | 236 | "ReplyMessage", |
| 237 | + "RequestHeadersNotProvidedError", |
196 | 238 | "SmartApp", |
197 | 239 | "SmartAppEvent", |
198 | | - "SmartAppEvent", |
| 240 | + "SmartappManifest", |
| 241 | + "SmartappManifestAndroidParams", |
| 242 | + "SmartappManifestAuroraParams", |
| 243 | + "SmartappManifestIosParams", |
| 244 | + "SmartappManifestUnreadCounterParams", |
| 245 | + "SmartappManifestWebLayoutChoices", |
| 246 | + "SmartappManifestWebParams", |
199 | 247 | "StatusRecipient", |
200 | 248 | "StealthModeDisabledError", |
201 | 249 | "Sticker", |
202 | 250 | "StickerPack", |
203 | 251 | "StickerPackOrStickerNotFoundError", |
| 252 | + "SyncSmartAppEventHandlerFunc", |
| 253 | + "SyncSmartAppEventHandlerNotFoundError", |
204 | 254 | "SyncSourceTypes", |
205 | 255 | "UnknownBotAccountError", |
206 | 256 | "UnknownSystemEventError", |
207 | 257 | "UnsupportedBotAPIVersionError", |
| 258 | + "UnverifiedRequestError", |
208 | 259 | "UserDevice", |
209 | 260 | "UserFromCSV", |
210 | 261 | "UserFromSearch", |
|
215 | 266 | "Voice", |
216 | 267 | "build_bot_disabled_response", |
217 | 268 | "build_command_accepted_response", |
| 269 | + "build_unverified_request_response", |
218 | 270 | "lifespan_wrapper", |
219 | 271 | ) |
220 | 272 |
|
|
0 commit comments