Compare commits

...
918 Commits
Author SHA1 Message Date
root 54fad3f338 Add files via upload 2022-07-18 13:43:06 +06:00
InsanusMokrassar 91e1202674 Delete 68a81ca4-7950-48df-b842-85f285ce3741.jpg 2022-07-18 13:33:23 +06:00
root bdd39963a8 Add files via upload 2022-07-18 13:31:30 +06:00
InsanusMokrassar 01dfedf540 Merge pull request #623 from InsanusMokrassar/2.2.0
2.2.0
2022-07-11 11:18:07 +06:00
InsanusMokrassar 8ded892b72 new class casts 2022-07-11 02:20:28 +06:00
InsanusMokrassar d0b606469b fixes related to owner chat member 2022-07-11 02:05:10 +06:00
InsanusMokrassar 678f79da04 CreatorChatMember -> OwnerChatMember 2022-07-11 01:56:31 +06:00
InsanusMokrassar fde2c79f4c extract force_reply field into constant 2022-07-11 01:43:04 +06:00
InsanusMokrassar acaf46e015 ReplyForce companion improvements 2022-07-11 01:27:28 +06:00
InsanusMokrassar 3f9237b5de flatInlineKeyboard and flatReplyKeyboard 2022-07-11 01:10:35 +06:00
InsanusMokrassar 3d7334dd62 sameChat 2022-07-11 00:57:13 +06:00
InsanusMokrassar 26306f1567 sameMessage 2022-07-11 00:53:20 +06:00
InsanusMokrassar 247553d990 add note about parameters order 2022-07-11 00:45:11 +06:00
InsanusMokrassar 049a8a3263 copy message order of parameters changed 2022-07-11 00:26:57 +06:00
InsanusMokrassar cc67a31e97 start 2.2.0 2022-07-11 00:10:30 +06:00
InsanusMokrassar 8791573145 Update build.gradle 2022-07-10 00:04:36 +06:00
InsanusMokrassar 5752f7a4fb Merge pull request #622 from InsanusMokrassar/2.1.3
2.1.3
2022-07-09 23:54:18 +06:00
InsanusMokrassar ade236eaa3 update microutils 2022-07-09 23:52:16 +06:00
InsanusMokrassar e7340a483a fixes 2022-07-09 23:45:24 +06:00
InsanusMokrassar c7dc69d09f ChatJoinRequest#inviteLink fix 2022-07-09 23:09:52 +06:00
InsanusMokrassar c2487c5adc fixes in links 2022-07-09 22:43:19 +06:00
InsanusMokrassar 7c4808f163 start 2.1.3 2022-07-09 22:37:58 +06:00
InsanusMokrassar b91b516659 Merge pull request #618 from InsanusMokrassar/2.1.2
2.1.2
2022-06-29 14:42:01 +06:00
InsanusMokrassar 57cdc4ff2a fill changelog 2022-06-29 14:27:29 +06:00
InsanusMokrassar 864992aff0 complete rewriting on libs.versions.toml 2022-06-29 14:23:45 +06:00
InsanusMokrassar e18e8ba6df start to use more unified way of scripts organization 2022-06-29 13:47:21 +06:00
InsanusMokrassar 02cedc6626 start 2.1.2 2022-06-29 13:27:35 +06:00
InsanusMokrassar 619b890956 Merge pull request #615 from InsanusMokrassar/2.1.1
2.1.1
2022-06-26 13:42:26 +06:00
InsanusMokrassar 100a76a832 Update CHANGELOG.md 2022-06-26 13:36:13 +06:00
InsanusMokrassar c583ae6761 replace all the edits into one file 2022-06-26 13:18:22 +06:00
InsanusMokrassar 7429ffb514 add TelegramBot#send extensions 2022-06-25 23:06:41 +06:00
InsanusMokrassar 95aeedfb94 Update DeleteMessage.kt 2022-06-25 18:34:41 +06:00
InsanusMokrassar 095e318a78 Update DeleteMessage.kt 2022-06-25 18:04:20 +06:00
InsanusMokrassar 4aa2d2ae41 Update gradle.properties 2022-06-25 03:13:46 +06:00
InsanusMokrassar e936d25c13 TelegramBot#edit 2022-06-25 02:49:38 +06:00
InsanusMokrassar 97a2a5d9fd exists methods of editing text/caption improvements 2022-06-25 02:19:20 +06:00
InsanusMokrassar 00ab532eac start 2.1.1 2022-06-25 02:11:23 +06:00
InsanusMokrassar c2cc6ee1ec Merge pull request #613 from InsanusMokrassar/2.1.0
2.1.0
2022-06-21 23:09:27 +06:00
InsanusMokrassar d20b94e52c rename PremiumChat -> PossiblyPremiumChat 2022-06-21 23:06:36 +06:00
InsanusMokrassar 9f3cc6eafb add mention about 6.1 telegram bot api support 2022-06-21 18:58:01 +06:00
InsanusMokrassar f86a095421 CreateInvoiceLink 2022-06-21 18:52:55 +06:00
InsanusMokrassar b0c6b80d8b small improvements 2022-06-21 18:30:31 +06:00
InsanusMokrassar 1df653f428 SetWebhook#secretToken 2022-06-21 17:55:21 +06:00
InsanusMokrassar 8dfaca7648 CommonUser#addedToAttachmentMenu 2022-06-21 17:52:16 +06:00
InsanusMokrassar 04db76831f add support of premium fields 2022-06-21 17:34:14 +06:00
InsanusMokrassar f2e9bf6bd8 update webapps support 2022-06-21 16:35:48 +06:00
InsanusMokrassar cde8fdeffd start 2.1.0 2022-06-21 15:22:34 +06:00
InsanusMokrassar e74f339ae2 Merge pull request #609 from InsanusMokrassar/2.0.3
2.0.3
2022-06-17 14:34:23 +06:00
InsanusMokrassar ff7702486f downloadFileToTemp 2022-06-17 13:49:44 +06:00
InsanusMokrassar c7818fe4df Update gradle.properties 2022-06-17 11:04:31 +06:00
InsanusMokrassar 8243acd69e regularln 2022-06-17 02:51:22 +06:00
InsanusMokrassar 8081602a39 update microutils 2022-06-17 00:20:30 +06:00
InsanusMokrassar 6fd85dbc56 start 2.0.3 2022-06-17 00:16:23 +06:00
InsanusMokrassar 8d6f4ba136 Merge pull request #602 from InsanusMokrassar/2.0.2
2.0.2
2022-06-05 21:01:10 +06:00
InsanusMokrassar b95b339ad1 Update CHANGELOG.md 2022-06-05 17:40:53 +06:00
InsanusMokrassar 637979100b Update gradle.properties 2022-06-05 17:40:13 +06:00
InsanusMokrassar 4067439a13 update micro_utils 2022-06-04 21:01:40 +06:00
InsanusMokrassar 03583ff6c1 start 2.0.2 2022-06-04 21:00:33 +06:00
InsanusMokrassar c1330f8e32 Merge pull request #598 from InsanusMokrassar/2.0.1
2.0.1
2022-05-29 23:06:15 +06:00
InsanusMokrassar db36c6aacb Update CHANGELOG.md 2022-05-29 22:16:55 +06:00
InsanusMokrassar 757e317e70 Update gradle.properties 2022-05-29 22:15:56 +06:00
InsanusMokrassar cb708a1ba4 Update CHANGELOG.md 2022-05-29 09:03:18 +06:00
InsanusMokrassar 551276f78e Update gradle.properties 2022-05-29 09:02:52 +06:00
InsanusMokrassar 88339a4977 Update CHANGELOG.md 2022-05-28 09:56:40 +06:00
InsanusMokrassar a13371e14c Update gradle.properties 2022-05-28 09:55:10 +06:00
InsanusMokrassar ad7fdc6211 improvements in longPolling extension 2022-05-22 22:36:56 +06:00
InsanusMokrassar c870a48a22 start 2.0.1 2022-05-22 22:35:45 +06:00
InsanusMokrassar 3149fd0231 Merge pull request #597 from InsanusMokrassar/2.0.0
2.0.0
2022-05-22 12:58:46 +06:00
InsanusMokrassar 7430490499 fixes for build 2022-05-22 01:46:11 +06:00
InsanusMokrassar 416187e079 remove deprecations 2022-05-22 01:40:03 +06:00
InsanusMokrassar e7aec75aca removing of filters for the wait triggers 2022-05-22 01:27:52 +06:00
InsanusMokrassar 95a466a08b start 2.0.0 2022-05-21 23:53:45 +06:00
InsanusMokrassar 507cb2af26 cleanup waiters in behaviour builder and add withEvent 2022-05-21 23:38:42 +06:00
InsanusMokrassar 126a07cdc7 start 1.2.0 2022-05-21 23:32:36 +06:00
InsanusMokrassar 27a24a18a6 fix of updates funnel in subsequent behaviour contexts 2022-05-21 21:44:33 +06:00
InsanusMokrassar 562e8c7429 improvements in Beheviour Context 2022-05-21 17:33:44 +06:00
InsanusMokrassar be027efc43 start 1.1.4 2022-05-21 17:27:04 +06:00
InsanusMokrassar e55195b308 Merge pull request #593 from InsanusMokrassar/1.1.3
1.1.3
2022-05-19 13:38:05 -04:00
InsanusMokrassar 14afb59b5f StateHandlingErrorHandler in microutils 2022-05-19 20:37:52 +06:00
InsanusMokrassar 6b23347d56 start 1.1.3 2022-05-19 20:24:55 +06:00
InsanusMokrassar f54843fb60 Merge pull request #592 from InsanusMokrassar/1.1.2
1.1.2
2022-05-18 07:10:31 -04:00
InsanusMokrassar 8a3538d9c7 fixes in relate to main behaviourBuilder fun 2022-05-18 17:05:47 +06:00
InsanusMokrassar e3db4250bb add default copy realization in BehaviourContextWithFSM 2022-05-18 16:52:52 +06:00
InsanusMokrassar 4643ac906a StateHandlingErrorHandler 2022-05-18 16:45:08 +06:00
InsanusMokrassar 497974e45c fix of #591 2022-05-18 16:31:14 +06:00
InsanusMokrassar 78a00f0efb start 1.1.2 2022-05-18 16:27:30 +06:00
InsanusMokrassar 14ecb9d948 Merge pull request #590 from InsanusMokrassar/1.1.1
1.1.1
2022-05-17 09:56:47 -04:00
InsanusMokrassar c759b9a466 deprecate hmac and hex extensions for CryptoJS in webapp 2022-05-17 19:54:13 +06:00
InsanusMokrassar 58c1f2ee6a fixes in TelegramAPIUrlsKeeper#checkWebAppLink 2022-05-17 19:51:14 +06:00
InsanusMokrassar 9d16ca3b7e small refactor of buildBehaviourWithLongPolling 2022-05-16 18:59:30 +06:00
InsanusMokrassar 9d40e598f1 buildBehaciour returns BehaviourContext 2022-05-16 18:58:19 +06:00
InsanusMokrassar f1be8bf16e start 1.1.1 2022-05-16 18:53:15 +06:00
InsanusMokrassar 56a8804e99 Merge pull request #589 from InsanusMokrassar/1.1.0
1.1.0
2022-05-14 12:21:08 +06:00
InsanusMokrassar 1e73aac750 Update Webhook.kt 2022-05-14 02:32:39 +06:00
InsanusMokrassar 82c6eda0b7 Update Webhook.kt 2022-05-14 02:31:36 +06:00
InsanusMokrassar e9ff93cde1 improvements in webhooks 2022-05-14 01:35:38 +06:00
InsanusMokrassar 9b179ea1c9 start 1.1.0 2022-05-14 00:06:32 +06:00
InsanusMokrassar 72d20d2344 Merge pull request #586 from InsanusMokrassar/1.0.1
1.0.1
2022-05-13 00:52:50 +06:00
InsanusMokrassar bcd288fe05 update dependencies 2022-05-12 17:51:42 +06:00
InsanusMokrassar 75477060e9 start 1.0.1 2022-05-12 17:50:04 +06:00
InsanusMokrassar 60df609486 Merge pull request #564 from InsanusMokrassar/1.0.0
1.0.0
2022-05-12 00:05:05 +06:00
InsanusMokrassar 556b492b35 remove redundant changelog part 2022-05-11 19:54:33 +06:00
InsanusMokrassar 53e8c53fb1 extract ReplyKeyboardMarkup fields names to the constants 2022-05-11 12:08:20 +06:00
InsanusMokrassar 69d36c5c1b a little refactor 2022-05-11 11:04:21 +06:00
InsanusMokrassar ad97008f12 refactoring and fixes 2022-05-11 10:56:31 +06:00
InsanusMokrassar 3e58114eeb Update BehaviourWithFSMStateHandlerHolder.kt 2022-05-11 10:30:47 +06:00
InsanusMokrassar d55d8fa000 fixes in behaviour builders 2022-05-11 02:47:00 +06:00
InsanusMokrassar bd32dbb3ab update dependencies note in changelog 2022-05-10 23:59:40 +06:00
InsanusMokrassar 8e0389f032 update microutils 2022-05-10 23:53:05 +06:00
InsanusMokrassar cb37b85234 update previews 2022-05-09 02:27:06 +06:00
InsanusMokrassar df01976ea8 fix of build 2022-05-08 00:39:41 +06:00
InsanusMokrassar 7be74e468b Merge branch 'master' into 1.0.0 2022-05-08 00:38:05 +06:00
InsanusMokrassar 437176203a Merge pull request #584 from InsanusMokrassar/0.38.23
0.38.23
2022-05-08 00:33:27 +06:00
InsanusMokrassar 7b25862035 optimize imports 2022-05-08 00:30:47 +06:00
InsanusMokrassar 45585caab0 fix of #560 2022-05-08 00:28:00 +06:00
InsanusMokrassar 6fea2a12d8 start 0.38.23 2022-05-07 23:26:26 +06:00
InsanusMokrassar ae639d38e0 Merge branch 'master' into 1.0.0 2022-05-05 14:58:07 +06:00
InsanusMokrassar 0510f72859 Merge pull request #583 from InsanusMokrassar/0.38.22
0.38.22
2022-05-05 14:33:59 +06:00
InsanusMokrassar 233c789054 improvements in keyboards and add tgWebAppStartParamField 2022-05-04 23:11:20 +06:00
InsanusMokrassar 52f405c3b1 start 0.38.22 2022-05-04 23:10:31 +06:00
InsanusMokrassar 199856acce Merge pull request #581 from InsanusMokrassar/0.38.21
0.38.21
2022-05-04 13:35:08 +06:00
InsanusMokrassar f36d642ec8 sendDataOrWorkWithQueryId 2022-05-04 13:05:54 +06:00
InsanusMokrassar aa6e5b2284 fix of WebAppInitData#queryId js name 2022-05-04 12:58:06 +06:00
InsanusMokrassar 32b83ac687 start 0.38.21 2022-05-04 12:51:14 +06:00
InsanusMokrassar a2206b99a2 Merge branch 'master' into 1.0.0 2022-05-04 11:13:17 +06:00
InsanusMokrassar 90e0b1ac81 Merge pull request #580 from InsanusMokrassar/0.38.20
0.38.20
2022-05-04 11:11:53 +06:00
InsanusMokrassar 1b5b3af45b add handleResult 2022-05-04 11:01:48 +06:00
InsanusMokrassar 7ff6412ec5 TelegramBot#answerWebAppQuery 2022-05-04 10:51:38 +06:00
InsanusMokrassar bd23d3fbdb hotfixes 2022-05-03 23:12:03 +06:00
InsanusMokrassar 08147fc33b start 0.38.20 2022-05-03 23:11:02 +06:00
InsanusMokrassar ba4c153659 Merge pull request #579 from InsanusMokrassar/0.38.19
0.38.19
2022-05-03 14:36:22 +06:00
InsanusMokrassar 3c3607d817 fill changelog 2022-05-03 14:32:29 +06:00
InsanusMokrassar d0add888c4 now the handlers from the upstream lists are not modified in the whole fsm behaviour context 2022-05-03 14:28:03 +06:00
InsanusMokrassar 3e3adab46b complete fix of issue with subcontexts 2022-05-03 13:58:13 +06:00
InsanusMokrassar 89d13de307 deprecation of BehaviourContextWithFSMBuilder 2022-05-03 10:38:48 +06:00
InsanusMokrassar 32451f4e1c start 0.38.19 2022-05-03 09:44:39 +06:00
InsanusMokrassar 721c3f2430 fix after merge 2022-05-02 14:19:56 +06:00
InsanusMokrassar fc92df8fbe Merge branch 'master' into 1.0.0 2022-05-02 13:50:31 +06:00
InsanusMokrassar ad50f41d1e Merge pull request #578 from InsanusMokrassar/0.38.18
0.38.18
2022-05-02 13:49:24 +06:00
InsanusMokrassar 8c9cd9df67 fix of #577 2022-05-02 13:21:43 +06:00
InsanusMokrassar 8e7f7a03c8 note about xzima help 2022-05-02 12:44:20 +06:00
InsanusMokrassar 484e09374d small refactor 2022-05-02 12:29:30 +06:00
Alex 619c82bb32 fix: new BehaviourContext ignored 2022-05-02 12:29:21 +06:00
InsanusMokrassar 33fb75a5eb start 0.38.18 2022-05-02 12:28:39 +06:00
InsanusMokrassar 901c1e8956 Merge pull request #576 from xzima/fix_new_BehaviourContext_ignored
fix: new BehaviourContext ignored
2022-05-02 08:50:20 +06:00
InsanusMokrassar 2ae105cb15 small refactor 2022-05-02 08:49:58 +06:00
Alex db14eee3b6 fix: new BehaviourContext ignored 2022-05-02 01:16:24 +03:00
InsanusMokrassar 6f8b881668 replaces of CommonAbstracts 2022-05-01 22:13:40 +06:00
InsanusMokrassar d113d4f0f5 replace ReplyMarkups and api extensions for live locations 2022-05-01 21:33:36 +06:00
InsanusMokrassar dd893b14d3 replaces of live location editing requests 2022-05-01 21:20:31 +06:00
InsanusMokrassar 19ddff2999 MediaGroupUpdates replaces 2022-05-01 21:01:03 +06:00
InsanusMokrassar 7f08fd9d66 replace ParseMode 2022-05-01 20:43:03 +06:00
InsanusMokrassar d3cb44490b TextSources replacements 2022-05-01 20:36:07 +06:00
InsanusMokrassar 4d3cad16a4 Merge branch 'master' into 1.0.0 2022-05-01 17:26:21 +06:00
InsanusMokrassar a52f31f4c9 Merge pull request #575 from InsanusMokrassar/0.38.17
0.38.17
2022-05-01 17:23:33 +06:00
InsanusMokrassar 682f696866 fill changelog 2022-05-01 17:23:12 +06:00
InsanusMokrassar 87fff2e5d0 add BotCommandScope helper extensions 2022-05-01 17:18:44 +06:00
InsanusMokrassar 92b4ba2ff0 fix of #574 2022-05-01 16:50:03 +06:00
InsanusMokrassar 9014cdbc99 start 0.38.17 2022-05-01 16:41:47 +06:00
InsanusMokrassar d0709a509f cleanup in message contents 2022-05-01 11:52:02 +06:00
InsanusMokrassar 0273d07777 update ktor 2022-05-01 11:22:23 +06:00
InsanusMokrassar bafb0c2459 fix incosistences after updating of dependencies 2022-05-01 11:21:01 +06:00
InsanusMokrassar 9be2b899cb Merge branch 'master' into 1.0.0 2022-05-01 11:07:22 +06:00
InsanusMokrassar 37317a1055 Merge pull request #573 from InsanusMokrassar/0.38.16
0.38.16
2022-04-29 23:28:12 +06:00
InsanusMokrassar 60c21002e1 fixes 2022-04-29 19:50:02 +06:00
InsanusMokrassar 78a7a3546a remove checking of webapp data from webapp module due to its existing in core 2022-04-29 19:18:22 +06:00
InsanusMokrassar 4799617ced "TelegramAPIUrlsKeeper" now have two new things: properties "webAppDataSecretKey" and fun "checkWebAppLink" 2022-04-29 19:11:38 +06:00
InsanusMokrassar c70484076d start 0.38.16 2022-04-29 18:56:38 +06:00
InsanusMokrassar 9f451f25f7 update dependencies 2022-04-28 10:40:44 +06:00
InsanusMokrassar 506c2b4a09 Merge branch 'master' into 1.0.0 2022-04-26 15:20:59 +06:00
InsanusMokrassar 0c92e6eeb4 Merge pull request #570 from InsanusMokrassar/0.38.15
0.38.15
2022-04-26 13:45:09 +06:00
InsanusMokrassar efd1c8f83a add additional onDataCallbackQuery variants with regex filters 2022-04-26 13:22:00 +06:00
InsanusMokrassar 7e57a0e4e0 revert update of microutils version 2022-04-26 13:07:16 +06:00
InsanusMokrassar 6b977e67d0 Revert "add telegram update handler"
This reverts commit ab5937449c.
2022-04-26 13:05:56 +06:00
InsanusMokrassar ab5937449c add telegram update handler 2022-04-25 22:28:35 +06:00
InsanusMokrassar 61d3131bf2 update micro_utils 2022-04-25 21:58:25 +06:00
InsanusMokrassar 048f244449 update microutils 2022-04-25 21:19:49 +06:00
InsanusMokrassar 6ebf4ff652 fixes in MessageContent#serializationModule 2022-04-25 21:19:08 +06:00
InsanusMokrassar b4c41d7dd8 start 0.38.15 2022-04-24 18:39:07 +06:00
InsanusMokrassar 6cbe313e42 Merge branch 'master' into 1.0.0 2022-04-23 12:50:12 +06:00
InsanusMokrassar 930507ab80 Merge pull request #568 from InsanusMokrassar/0.38.14
0.38.14
2022-04-23 12:43:02 +06:00
InsanusMokrassar 56d3628dd3 add support of menu buttons 2022-04-23 12:39:14 +06:00
InsanusMokrassar 56d7853f68 update defaults in telegramBot factories 2022-04-23 12:34:38 +06:00
InsanusMokrassar 0a27d9bf28 add shortcuts for telegram and webApp in webapps 2022-04-23 12:34:26 +06:00
InsanusMokrassar c74df3960c fixes in viewport changed events 2022-04-23 12:34:13 +06:00
InsanusMokrassar f4b080cb45 now WebAppData is data class 2022-04-23 12:34:05 +06:00
InsanusMokrassar 350b77f6ff add webAppButton overload with url as string 2022-04-23 12:33:56 +06:00
InsanusMokrassar 955e14f67c add trigger and expectation for WebAppData 2022-04-23 12:33:45 +06:00
InsanusMokrassar ae88b7d94d fix dokka 2022-04-23 12:33:34 +06:00
InsanusMokrassar 88c62bd51c add checking of data in web app 2022-04-23 12:33:23 +06:00
InsanusMokrassar 705bcbe352 webapps 2022-04-23 12:32:39 +06:00
InsanusMokrassar ffcc149c40 update info about supported telegram bot api version 2022-04-23 12:31:37 +06:00
InsanusMokrassar 402d91f9f2 add support of SentWebAppMessage 2022-04-23 12:31:22 +06:00
InsanusMokrassar c19bccc7d1 add support of WebAppInfo 2022-04-23 12:30:35 +06:00
InsanusMokrassar 2c71377058 voice(_c/C)hat* -> video(_c/C)hat* renames 2022-04-23 12:30:15 +06:00
InsanusMokrassar 12d2c05110 add support of WebhookInfo#lastSynchronizationErrorDate 2022-04-23 12:28:40 +06:00
InsanusMokrassar ddf46c1afd add support of ChatAdministratorRights 2022-04-23 12:27:24 +06:00
InsanusMokrassar dd0a8b99c7 add WebAppData 2022-04-23 12:26:28 +06:00
InsanusMokrassar 75fb72936f fix of 563 2022-04-23 12:25:39 +06:00
InsanusMokrassar 1a6a010446 start 0.38.14 2022-04-23 12:24:52 +06:00
InsanusMokrassar 900ef28404 rename InputMedia -> TelegramMedia and replace all InputMedia to media package 2022-04-22 13:54:06 +06:00
InsanusMokrassar a930423955 chats sealing 2022-04-22 00:16:41 +06:00
InsanusMokrassar 323c4de858 replace of ChatMember 2022-04-21 23:24:01 +06:00
InsanusMokrassar cdd5649c04 CallbackQuery package -> queries.callback 2022-04-21 22:42:54 +06:00
InsanusMokrassar 2275a61d73 deprecation of dev.inmo.tgbotapi.bot.Ktor 2022-04-21 21:57:11 +06:00
InsanusMokrassar bf8f4c75f8 update defaults in telegramBot factories 2022-04-21 21:48:25 +06:00
InsanusMokrassar b5334c2b72 fix of #556 2022-04-21 17:54:21 +06:00
InsanusMokrassar 8331d4edd7 fix of #546 2022-04-21 15:42:32 +06:00
InsanusMokrassar 0e6a708eea add shortcuts for telegram and webApp in webapps 2022-04-21 14:49:52 +06:00
InsanusMokrassar fbc5e9f8c4 fixes in viewport changed events 2022-04-21 14:49:52 +06:00
InsanusMokrassar 040a996df6 now WebAppData is data class 2022-04-21 14:49:52 +06:00
InsanusMokrassar cf27600fb5 add webAppButton overload with url as string 2022-04-21 14:49:52 +06:00
InsanusMokrassar 1d42f86623 add trigger and expectation for WebAppData 2022-04-21 14:49:52 +06:00
InsanusMokrassar a9cb07fa0d fix dokka 2022-04-21 14:49:52 +06:00
InsanusMokrassar dd7567f43c add checking of data in web app 2022-04-21 14:49:52 +06:00
InsanusMokrassar d0006bb089 webapps 2022-04-21 14:49:52 +06:00
InsanusMokrassar 7d8b990ec4 remove tgbotapi.extensions.* 2022-04-21 14:49:52 +06:00
InsanusMokrassar 4d20e2cd1c update info about supported telegram bot api version 2022-04-21 14:49:52 +06:00
InsanusMokrassar 4ffe6f915f add support of SentWebAppMessage 2022-04-21 14:49:52 +06:00
InsanusMokrassar 22a7697447 add support of WebAppInfo 2022-04-21 14:49:52 +06:00
InsanusMokrassar ef9941134e voice(_c/C)hat* -> video(_c/C)hat* renames 2022-04-21 14:49:52 +06:00
InsanusMokrassar ba85b8657d add support of WebhookInfo#lastSynchronizationErrorDate 2022-04-21 14:49:52 +06:00
InsanusMokrassar 2dcbc0df32 add support of ChatAdministratorRights 2022-04-21 14:49:52 +06:00
InsanusMokrassar 7bac4a3a32 add support of menu buttons 2022-04-21 14:49:52 +06:00
InsanusMokrassar 63bcc4bcf8 add WebAppData 2022-04-21 14:49:52 +06:00
InsanusMokrassar 643f8e577e fix of #550 2022-04-21 14:49:52 +06:00
InsanusMokrassar 721b82f912 fix of 563 2022-04-21 14:49:52 +06:00
InsanusMokrassar 892aef738d start 1.0.0 🎉 2022-04-21 14:49:52 +06:00
InsanusMokrassar 4c7bfe99c0 Merge pull request #567 from InsanusMokrassar/renovate/github_release_plugin_version
Update dependency com.github.breadmoirai:github-release to v2.3.7
2022-04-20 20:13:28 +06:00
Renovate Bot 1e4b8d405e Update dependency com.github.breadmoirai:github-release to v2.3.7 2022-04-19 00:27:10 +00:00
InsanusMokrassar 007112e67a Merge pull request #559 from InsanusMokrassar/0.38.13
0.38.13
2022-04-17 00:26:23 +06:00
InsanusMokrassar a87c21273d BehaviourContext#on*Message extensions 2022-04-17 00:22:00 +06:00
InsanusMokrassar ff2d1615da replace TODO for pipelineStepsHolder with default realization 2022-04-16 23:58:24 +06:00
InsanusMokrassar 08ef146daa Update gradle.properties 2022-04-13 23:12:32 +06:00
InsanusMokrassar a404a6c59c fixes in DownloadFIleChannelRequestCallFactory 2022-04-11 21:56:47 +06:00
InsanusMokrassar 1089c716f3 deprecate StorageFileInfo 2022-04-11 21:00:56 +06:00
InsanusMokrassar 81ad55b19f add KtorPipelineStepsHolder#onRequestReturnResult 2022-04-11 14:41:02 +06:00
InsanusMokrassar 863c872f35 start to add pipelines and fix mention creation 2022-04-11 12:46:33 +06:00
InsanusMokrassar ece6a917ed start 0.38.13 2022-04-11 11:59:37 +06:00
InsanusMokrassar 12248aa702 Merge pull request #555 from InsanusMokrassar/0.38.12
0.38.12
2022-04-09 12:24:57 +06:00
InsanusMokrassar 83ea4f6435 Update gradle.properties 2022-04-08 09:49:06 +06:00
InsanusMokrassar 52204d8df1 Experemtally update kotlin 2022-04-08 09:44:37 +06:00
InsanusMokrassar 81b9ccdf6a Update VideoContent.kt 2022-04-08 09:29:07 +06:00
InsanusMokrassar fa74f12505 Update CHANGELOG.md 2022-04-08 02:09:22 +06:00
InsanusMokrassar be284c4d96 Update dependencies 2022-04-08 02:08:21 +06:00
InsanusMokrassar 1769fcacfd update gradle 2022-04-06 11:45:08 +06:00
InsanusMokrassar 4207d89c92 accumulated updates improvements 2022-04-04 13:16:18 +06:00
InsanusMokrassar 87ee2f280b remove redundant TextedMediaInputMediaContent 2022-04-03 19:56:34 +06:00
InsanusMokrassar 3d458b2dc6 fixes in builds and filling up functionality related to new classes 2022-04-03 19:48:48 +06:00
InsanusMokrassar ee1c7c6533 TextedMediaGroupMediaInput 2022-04-03 19:37:56 +06:00
InsanusMokrassar 97d122c770 TextedMediaContent fixes 2022-04-03 19:29:48 +06:00
InsanusMokrassar 49da0faf45 replies with texted content 2022-04-03 19:21:38 +06:00
InsanusMokrassar d426cb1210 TextedMediaContent 2022-04-03 19:06:27 +06:00
InsanusMokrassar af83ac79e7 start 0.38.12 2022-04-03 18:35:17 +06:00
InsanusMokrassar 602f15c206 Update README.md 2022-04-01 00:01:25 +06:00
InsanusMokrassar c2f40534e6 Update README.md 2022-03-31 23:55:34 +06:00
InsanusMokrassar 5693d4d808 Merge pull request #548 from InsanusMokrassar/0.38.11
0.38.11
2022-03-29 23:40:04 +06:00
InsanusMokrassar 9fe55aa6ef Update CHANGELOG.md 2022-03-29 12:42:02 +06:00
InsanusMokrassar 8f817f1492 reply with any media file 2022-03-29 12:37:54 +06:00
InsanusMokrassar 0fd146655d old matrix and row deprecation 2022-03-29 12:27:03 +06:00
InsanusMokrassar 94e5f74a90 reply with content 2022-03-29 12:20:52 +06:00
InsanusMokrassar b9bffbb71b update dependencies 2022-03-27 13:47:38 +06:00
InsanusMokrassar 5ec5c3bdfd Fixes in "TextSourcesList" creating in from "RawMessageEntities" 2022-03-27 13:44:41 +06:00
InsanusMokrassar a5ed2a82bb start 0.38.11 2022-03-27 13:36:21 +06:00
InsanusMokrassar 1b7dd11e75 Merge pull request #545 from InsanusMokrassar/0.38.10
0.38.10
2022-03-25 10:36:21 +06:00
InsanusMokrassar 8d0307fb7f update github building yml 2022-03-24 16:49:08 +06:00
InsanusMokrassar c500f0a281 update reply and sendPhoto with PhotoSize 2022-03-24 16:47:07 +06:00
InsanusMokrassar b3abeaa5ae Update packages_publishing.yml 2022-03-23 17:03:08 +06:00
InsanusMokrassar 8930a66134 with*Action block called once 2022-03-23 11:48:20 +06:00
InsanusMokrassar 76a2a2ca74 start 0.38.10 2022-03-23 05:06:48 +06:00
InsanusMokrassar 7dff8af460 Update gradle.properties 2022-03-23 05:01:09 +06:00
InsanusMokrassar 5261ab1cf0 start 0.38.10 2022-03-23 05:00:28 +06:00
InsanusMokrassar f45c653fca Merge pull request #544 from InsanusMokrassar/0.38.9
0.38.9
2022-03-22 19:06:29 +06:00
InsanusMokrassar 5e03098ca8 fill changelog 2022-03-22 19:06:02 +06:00
InsanusMokrassar 2a3d8e6e73 publication scripts update 2022-03-22 16:26:18 +06:00
InsanusMokrassar 8c3dac7932 signature clashes fixes 2022-03-21 23:23:19 +06:00
InsanusMokrassar 83fb7f7bcb add opportunity to use several bots in one to serve bots requests 2022-03-21 23:06:23 +06:00
InsanusMokrassar 459414e7dd add RistFeature to SerializationModule 2022-03-21 17:03:37 +06:00
InsanusMokrassar 508d51f5a9 reply with copyMessage 2022-03-20 12:14:26 +06:00
InsanusMokrassar 36f22579b2 add MessageContent.Companion#serializationModule 2022-03-20 11:52:29 +06:00
InsanusMokrassar d3d5f7f2e6 start 0.38.9 2022-03-20 11:50:52 +06:00
InsanusMokrassar 1369680419 Merge pull request #543 from InsanusMokrassar/0.38.8
0.38.8
2022-03-19 21:15:03 +06:00
InsanusMokrassar f6e819be62 simpleFilter to list wrapper 2022-03-19 12:49:14 +06:00
InsanusMokrassar 553da0a3ee update dependencies and fill changelog 2022-03-19 12:27:46 +06:00
InsanusMokrassar bace2724da a little bit refactor MediaGroupTriggers.kt 2022-03-19 10:15:44 +06:00
InsanusMokrassar be710612b5 Update MediaGroupTriggers.kt 2022-03-19 09:55:48 +06:00
InsanusMokrassar ea19c10f41 start 0.38.8 2022-03-18 19:18:34 +06:00
InsanusMokrassar 1b88881c62 Update README.md 2022-03-14 02:50:38 +06:00
InsanusMokrassar be62c4fe37 Merge pull request #540 from InsanusMokrassar/0.38.7
0.38.7
2022-03-12 14:32:20 +06:00
InsanusMokrassar d3499cdde1 update microutils and fill changelog 2022-03-12 13:41:49 +06:00
InsanusMokrassar 01d04f9d2b Update gradle-wrapper.properties 2022-03-11 22:31:19 +06:00
InsanusMokrassar d290992e40 Update gradle.properties 2022-03-11 22:30:52 +06:00
InsanusMokrassar 867bdb8bd7 Update CHANGELOG.md 2022-03-08 00:18:25 +06:00
InsanusMokrassar 5f0a67187f add default votes in SimplePollOption 2022-03-08 00:15:29 +06:00
InsanusMokrassar d9638849e2 update dependencies 2022-03-07 12:44:55 +06:00
InsanusMokrassar 5568720b5b start 0.38.7 2022-03-07 12:44:08 +06:00
InsanusMokrassar c0c591fe08 Merge pull request #535 from InsanusMokrassar/0.38.6
0.38.6
2022-02-27 22:22:04 +06:00
InsanusMokrassar 3c1f8421c9 Update CHANGELOG.md 2022-02-27 10:04:28 +06:00
InsanusMokrassar 35b20d102c Update gradle.properties 2022-02-26 22:01:41 +06:00
InsanusMokrassar 70e6dc8fc9 update dependencies 2022-02-19 23:07:30 +06:00
InsanusMokrassar 4f0de376ab MentionTextSource#username 2022-02-19 23:02:58 +06:00
InsanusMokrassar 10c52c695c start 0.38.6 2022-02-19 22:54:41 +06:00
InsanusMokrassar 2d2c745527 Merge pull request #532 from InsanusMokrassar/0.38.5
0.38.5
2022-02-08 16:53:27 +06:00
InsanusMokrassar 1238843bde update dependencies 2022-02-08 16:50:38 +06:00
InsanusMokrassar 1ebaa1c387 deeplinking fixes and additions 2022-02-07 18:08:06 +06:00
InsanusMokrassar b2bc47ec04 start 0.38.5 2022-02-07 18:00:13 +06:00
root 514620b2bd Merge pull request #530 from InsanusMokrassar/0.38.4
0.38.4
2022-02-02 10:05:11 +06:00
root 054f06e18b Update gradle.properties 2022-02-01 23:39:07 +06:00
InsanusMokrassar 00d467d091 classcasts and raw fields updates 2022-02-01 23:25:22 +06:00
InsanusMokrassar 6426ed6571 fixes 2022-02-01 23:05:47 +06:00
InsanusMokrassar fba6707f44 fixes in create sticker set methods 2022-02-01 17:59:23 +06:00
InsanusMokrassar 0c2fe6bce7 support of Telegram Bot API 5.7 2022-02-01 16:23:26 +06:00
InsanusMokrassar eee9fe439f fix of #529 2022-01-31 17:52:01 +06:00
InsanusMokrassar 3547c09383 start 0.38.4 2022-01-31 17:48:10 +06:00
InsanusMokrassar 956f02d26d Merge pull request #526 from InsanusMokrassar/0.38.3
0.38.3
2022-01-14 16:47:49 +06:00
InsanusMokrassar 468fc0a49b Update CHANGELOG.md 2022-01-14 16:31:57 +06:00
InsanusMokrassar 441f3cee3d Update gradle.properties 2022-01-14 16:31:19 +06:00
InsanusMokrassar 1ea79b9f7f update changelog 2022-01-13 19:01:17 +06:00
InsanusMokrassar 094f88867d Update gradle.properties 2022-01-13 13:52:49 +06:00
InsanusMokrassar 85a8a8eedc update dokka version 2022-01-12 13:02:23 +06:00
InsanusMokrassar 28fce0b4c1 New extensions "TelegramBot#send*" for media groups with contents 2022-01-12 11:39:35 +06:00
InsanusMokrassar 2f5fdcdca0 start 0.38.3 2022-01-12 11:37:34 +06:00
InsanusMokrassar 21799d7e4a add exceptions handling readme 2022-01-11 21:22:10 +06:00
InsanusMokrassar ca409db0ee Merge pull request #525 from InsanusMokrassar/0.38.2
0.38.2
2022-01-10 23:08:50 +06:00
InsanusMokrassar 33c8ee0803 remove redundant copyMessage 2022-01-10 13:48:00 +06:00
InsanusMokrassar 0c0ec22348 update microutils dependency 2022-01-10 13:16:50 +06:00
InsanusMokrassar 24bffbbd97 addopportunity to copy messages using just content 2022-01-10 13:15:10 +06:00
InsanusMokrassar a615d1c4fd copyMessages for media groups 2022-01-10 13:06:18 +06:00
InsanusMokrassar a76b7977b3 start 0.38.2 2022-01-10 12:38:48 +06:00
InsanusMokrassar 6004879aef Merge pull request #524 from InsanusMokrassar/0.38.1
0.38.1
2022-01-07 13:37:06 +06:00
InsanusMokrassar 98ff2558e9 remove redundant dependency in utils 2022-01-07 13:32:34 +06:00
root 61c00b38b1 Update core publish scripts 2022-01-07 13:29:53 +06:00
InsanusMokrassar 2096671147 upfill raw extensions 2022-01-07 12:56:42 +06:00
InsanusMokrassar 094d58f59f upfill of changelog 2022-01-06 17:13:37 +06:00
InsanusMokrassar 578a66b758 fill changelog 2022-01-06 17:00:56 +06:00
InsanusMokrassar b5bb40576b optimize imports of utils 2022-01-06 16:59:15 +06:00
InsanusMokrassar 953638ddf5 add raw fields for CallbackQuery 2022-01-06 16:57:51 +06:00
InsanusMokrassar 1c9ca7a493 add raw fields for ChosenInlineResult 2022-01-06 16:52:28 +06:00
InsanusMokrassar c220412b02 add raw fields for InlineQuery 2022-01-06 16:45:50 +06:00
InsanusMokrassar 41852dde7c add raw fields for polls 2022-01-06 16:42:19 +06:00
InsanusMokrassar 3150cd6a37 fix build 2022-01-06 14:55:07 +06:00
InsanusMokrassar 07de18efd8 update changelog 2022-01-06 14:50:14 +06:00
InsanusMokrassar 9552550198 UserLoggedIn, additions in ClassCasts and partial fix of #511 2022-01-06 14:49:11 +06:00
InsanusMokrassar e1c94f772d MessageCallbackQuery#message now is ContentMessage<MessageContent> 2022-01-06 13:54:22 +06:00
InsanusMokrassar fbed81a1b3 start 0.38.1 2022-01-06 13:49:03 +06:00
InsanusMokrassar b61912d99a Merge pull request #522 from InsanusMokrassar/0.38.0
0.38.0
2022-01-02 03:34:45 +06:00
InsanusMokrassar 5efe74171d Update README.md 2022-01-02 03:33:52 +06:00
InsanusMokrassar 393981560c Update README.md 2022-01-02 03:32:59 +06:00
InsanusMokrassar 73b355df55 fixes 2022-01-02 02:00:22 +06:00
InsanusMokrassar 86885e7698 updates in CommonMessage implementers and removing of deprecations 2022-01-02 01:49:14 +06:00
InsanusMokrassar 4d9be1a995 fix in MessageAutoDeleteTimerChanged 2022-01-02 01:12:41 +06:00
InsanusMokrassar 596176ee93 simple rewrite of spoiler markdown 2022-01-01 20:20:48 +06:00
InsanusMokrassar 2348434048 add support of protect_content in forwardMessage 2022-01-01 20:16:07 +06:00
InsanusMokrassar 5c6a430f38 support of protect_content 2022-01-01 20:13:22 +06:00
InsanusMokrassar 148791ad68 extend InlineQueryResultGif fun with FileId and add ProtectContent + extend SendMessageRequest with it in advance 2022-01-01 13:42:39 +06:00
InsanusMokrassar 5c5a19c91a add spoiler support 2021-12-31 13:48:51 +06:00
InsanusMokrassar bd60c4f411 update gradle wrapper 2021-12-31 12:34:01 +06:00
InsanusMokrassar e5a36225f8 Merge branch 'master' into 0.38.0 2021-12-31 02:55:54 +06:00
InsanusMokrassar bd2c13c178 Merge pull request #515 from InsanusMokrassar/0.37.4
0.37.4
2021-12-30 23:06:15 +06:00
InsanusMokrassar 6f1f94299b fix of build 2021-12-30 12:30:09 +06:00
InsanusMokrassar 72b8231eab update gitignore and dokka version 2021-12-30 11:55:12 +06:00
InsanusMokrassar 323e5fb391 update dependencies 2021-12-30 11:50:58 +06:00
InsanusMokrassar dca5bb40e3 Update MigratedToSupergroup.kt 2021-12-27 23:06:51 +06:00
InsanusMokrassar c21975a150 Merge branch 'master' into 0.37.4 2021-12-27 23:01:45 +06:00
InsanusMokrassar 8675833b99 Update CHANGELOG.md 2021-12-27 22:50:09 +06:00
InsanusMokrassar faf669c035 Update gradle.properties 2021-12-27 22:48:21 +06:00
InsanusMokrassar 2f3a683fa0 Update CHANGELOG.md 2021-12-23 17:24:13 +06:00
InsanusMokrassar 2a617b5c4d Merge pull request #514 from madhead/feature/MigratedToSupergroup
Support for "migrated to supergroup" events
2021-12-22 09:47:21 +06:00
madhead aa1e7eea1d Support for "migrated to supergroup" events 2021-12-22 02:37:43 +01:00
InsanusMokrassar 22eac5414c start 0.37.4 2021-12-21 19:13:49 +06:00
InsanusMokrassar 8206aefbb6 Merge pull request #513 from InsanusMokrassar/0.37.3
0.37.3: hotfix of 0.37.2
2021-12-20 14:11:48 +06:00
InsanusMokrassar fb8cfed382 hotfix 2021-12-20 14:07:45 +06:00
InsanusMokrassar 2de22a08a3 Merge pull request #506 from InsanusMokrassar/0.37.2
0.37.2
2021-12-20 13:00:07 +06:00
InsanusMokrassar e8022a2ded add kdocs to the requests 2021-12-20 12:50:06 +06:00
InsanusMokrassar d6cef5984b filling of changelog and several fixes 2021-12-20 12:47:55 +06:00
InsanusMokrassar 49bea1bcef update gradle wrapper 2021-12-20 12:32:21 +06:00
InsanusMokrassar 85a4459072 Update RawMessage.kt 2021-12-19 00:46:06 +06:00
InsanusMokrassar ce74631580 actualizing of readmes 2021-12-18 23:19:05 +06:00
InsanusMokrassar 1e5ce6bb5c add ContentMessage#hasProtectedContent 2021-12-18 23:12:12 +06:00
InsanusMokrassar dc89e914a1 support of has_protected_content field 2021-12-18 23:11:28 +06:00
InsanusMokrassar ee815c7335 update micro_utils 2021-12-18 22:29:25 +06:00
InsanusMokrassar 69f4033807 add support of is_automatic_forward 2021-12-18 22:28:01 +06:00
InsanusMokrassar 0581587adf add support of has_private_forwards 2021-12-10 12:53:00 +06:00
InsanusMokrassar 23f93075a4 update microutils and add banChatSenderChat and unbanChatSenderChat support 2021-12-10 12:49:13 +06:00
InsanusMokrassar 6c3425d5f9 Update CHANGELOG.md 2021-12-04 21:23:34 +06:00
InsanusMokrassar d285590348 Update gradle-wrapper.properties 2021-12-04 21:12:12 +06:00
InsanusMokrassar 2e0ad6dd3c Merge pull request #505 from InsanusMokrassar/fix/linkln
Fix of linkln
2021-12-04 21:08:46 +06:00
InsanusMokrassar 96a5e55894 Merge pull request #499 from InsanusMokrassar/renovate/micro_utils_version
Update micro_utils_version to v0.8.5
2021-12-04 21:08:06 +06:00
InsanusMokrassar 4e3b085cdb start 0.37.2 2021-12-04 21:07:00 +06:00
InsanusMokrassar 8baa601af7 Fix of linkln 2021-12-04 12:51:55 +06:00
Renovate Bot facd732fa8 Update micro_utils_version to v0.8.5 2021-11-27 17:38:58 +00:00
InsanusMokrassar e19561367e Merge pull request #500 from InsanusMokrassar/0.37.1
0.37.1
2021-11-14 20:03:57 +06:00
InsanusMokrassar 249efeee7e update scripts 2021-11-14 19:42:03 +06:00
InsanusMokrassar b8cc2421b6 update dependencies 2021-11-14 19:15:09 +06:00
InsanusMokrassar 2fa1a064ec start 0.37.1 2021-11-14 19:14:06 +06:00
InsanusMokrassar 63e864741e update changelog and several kdocs 2021-11-11 12:24:10 +06:00
InsanusMokrassar e4f35c0eba update KDocs 2021-11-11 12:11:58 +06:00
InsanusMokrassar 944fe6d820 Update CHANGELOG.md 2021-11-11 11:14:05 +06:00
InsanusMokrassar 8ea50f36aa Merge pull request #493 from InsanusMokrassar/0.37.0
0.37.0
2021-11-10 14:48:53 +06:00
InsanusMokrassar 17308a6d99 update gradle distro 2021-11-10 13:06:43 +06:00
InsanusMokrassar 6eabea2529 Update CHANGELOG.md 2021-11-09 19:23:41 +06:00
InsanusMokrassar ffe9166fee Update gradle.properties 2021-11-09 19:23:27 +06:00
InsanusMokrassar f1be3e2819 Update README.md 2021-11-09 14:09:20 +06:00
InsanusMokrassar c4c016c438 update common readme 2021-11-09 13:40:38 +06:00
InsanusMokrassar a85e7d7387 fixes 2021-11-09 00:32:04 +06:00
InsanusMokrassar fc59ab0cdd add class casts for ChatInviteLink 2021-11-08 19:15:58 +06:00
InsanusMokrassar 9ed7ded967 fix texts of bot actions 2021-11-08 19:07:02 +06:00
InsanusMokrassar a76a7ae630 add choose_sticker 2021-11-08 18:36:17 +06:00
InsanusMokrassar 4715eb424f add support of join request approving/declining 2021-11-08 18:33:24 +06:00
InsanusMokrassar c24d536d4c add ChatJoinRequest 2021-11-08 18:21:55 +06:00
InsanusMokrassar c969d88bf0 update invite links and add name field 2021-11-08 18:00:43 +06:00
InsanusMokrassar 44e9dc9253 remove deprecations 2021-11-08 17:33:02 +06:00
InsanusMokrassar 10c62bf2c7 chat invite links update 2021-11-08 17:27:15 +06:00
InsanusMokrassar 20b1645935 start migrate fsm part 2021-11-06 21:21:49 +06:00
InsanusMokrassar c5bf9ab1a2 Update CHANGELOG.md 2021-11-05 22:04:55 +06:00
InsanusMokrassar cd6d108a9a Update gradle.properties 2021-11-05 22:03:42 +06:00
InsanusMokrassar 5369a85faa update dependencies 2021-11-03 17:31:24 +06:00
InsanusMokrassar 45a895f32f start 0.36.2 2021-11-03 17:29:10 +06:00
InsanusMokrassar 8c1d7203d2 Merge pull request #487 from InsanusMokrassar/0.36.1
0.36.1
2021-10-23 23:08:09 +06:00
InsanusMokrassar 7394a6e94b update microutils 2021-10-23 14:36:13 +06:00
InsanusMokrassar a962838012 Merge pull request #488 from Djaler/get-my-commands-overload
fix getMyCommands overloads conflict when no arguments provided
2021-10-23 10:31:13 +06:00
Kirill Romanov a5cc80a1eb fix getMyCommands overloads conflict when no arguments provided 2021-10-22 21:34:04 +03:00
InsanusMokrassar 064b6222e6 Merge pull request #486 from Djaler/build-entities-separator
Build entities separator
2021-10-23 00:05:28 +06:00
Kirill Romanov 8d97057d2c add separator parameter to buildEntities 2021-10-22 20:59:49 +03:00
Kirill Romanov 78f006e280 move entitiesList from EntitiesBuilder constructor 2021-10-22 20:55:10 +03:00
InsanusMokrassar db956a803c Update CHANGELOG.md 2021-10-22 23:51:47 +06:00
InsanusMokrassar aeb131b2f4 Update gradle.properties 2021-10-22 23:51:13 +06:00
InsanusMokrassar 6d80c2bddc Update README.md 2021-10-20 22:14:34 +06:00
InsanusMokrassar 6e32d4e863 update behaviour builder fsm readme 2021-10-18 20:08:55 +06:00
InsanusMokrassar 6b62070447 Merge pull request #474 from InsanusMokrassar/0.36.0
0.36.0
2021-10-18 17:13:30 +06:00
InsanusMokrassar ad8710db92 add telegraph note 2021-10-18 16:43:37 +06:00
InsanusMokrassar f385101e22 deprecate several behaviour builder methods 2021-10-18 15:48:24 +06:00
InsanusMokrassar 15386a63f9 small fix 2021-10-18 15:38:42 +06:00
InsanusMokrassar 576b25190a cleanup 'extension' suffix in readmes 2021-10-18 15:37:10 +06:00
InsanusMokrassar dd979d8626 update publish scripts of old packages 2021-10-18 15:23:43 +06:00
InsanusMokrassar e60eb68b67 packages update 2021-10-18 15:20:25 +06:00
InsanusMokrassar 91212eaa3a resolution of #484 2021-10-18 14:45:57 +06:00
InsanusMokrassar 65c1f018ac update microutils 2021-10-18 14:13:22 +06:00
InsanusMokrassar 5b13d3dded Merge pull request #485 from madhead/feature/possibly-reply-casts
PossiblyReplyMessage casts
2021-10-18 14:12:20 +06:00
madhead 2447d3e51f Don't run the labeler if the actor is not repo owner 2021-10-17 14:44:22 +02:00
Siarhei 4203a0fdfe PossiblyReplyMessage casts
Add asPossiblyReplyMessage / requirePossiblyReplyMessage / whenPossiblyReplyMessage
2021-10-17 14:33:14 +02:00
InsanusMokrassar ddd32a81c0 Update CHANGELOG.md 2021-10-16 08:54:53 +06:00
InsanusMokrassar db7a42fa9b Update gradle.properties 2021-10-16 08:54:36 +06:00
InsanusMokrassar 5e2df1cb4a a little fill of Readme for fsm behaviour builder 2021-10-15 18:24:06 +06:00
InsanusMokrassar 21c0e375f5 update kdocs of BehaviourContextWithFSM 2021-10-15 17:55:13 +06:00
InsanusMokrassar 4ac01d0104 update onSuccessPayment kdocs 2021-10-15 17:40:32 +06:00
InsanusMokrassar 9c15410c4e update kdoc of telegramBotWithBehaviourAndFSMAndStartLongPolling 2021-10-15 17:37:14 +06:00
InsanusMokrassar c5ff0dbc54 fixes 2021-10-15 17:13:03 +06:00
InsanusMokrassar 19d221fc29 fixes 2021-10-15 16:37:20 +06:00
InsanusMokrassar 179a724d20 several actualizations for behaviour builder with fsm 2021-10-15 16:28:17 +06:00
InsanusMokrassar ad9bc36f8c all triggers in behaviour builder now use accumulator flow 2021-10-14 23:05:11 +06:00
InsanusMokrassar 5a192b00d4 refactor of contentConverter 2021-10-14 22:57:04 +06:00
InsanusMokrassar 2a33b22afb BehaviourBuilder FSM extension 2021-10-13 14:22:01 +06:00
InsanusMokrassar db1e01688d Update FUNDING.yml 2021-10-05 23:52:03 +06:00
InsanusMokrassar 22e71354dd update dokka 2021-10-05 17:27:50 +06:00
InsanusMokrassar 2e560db865 update microutils 2021-10-05 17:08:19 +06:00
InsanusMokrassar 016fc81b71 update microutils 2021-10-04 15:56:30 +06:00
InsanusMokrassar b6e72c2399 rename poll updates triggers and fill changelog 2021-10-03 21:16:31 +06:00
InsanusMokrassar e1e2b93269 deprecate waitEditedPoll and rename poll updates waiters 2021-10-03 21:14:28 +06:00
InsanusMokrassar 834e31906a deprecate onEditPoll and rename poll updates triggers 2021-10-03 21:12:17 +06:00
InsanusMokrassar 5831cc6d37 hotfix for autorenames -.- 2021-10-03 20:40:42 +06:00
InsanusMokrassar 0cce72de8d cover all updates in behaviour builder 2021-10-03 20:37:14 +06:00
InsanusMokrassar 3919359f79 CommonGroupEvent -> PublicChatEvent 2021-10-03 18:44:29 +06:00
InsanusMokrassar e51a4b7702 SuccessfulPaymentEvent 2021-10-03 11:53:54 +06:00
InsanusMokrassar 702c1bc1ff fix build 2021-10-02 00:52:29 +06:00
InsanusMokrassar 6557e8af10 upfixes in changelog 2021-10-01 20:07:14 +06:00
InsanusMokrassar edcebb03c0 add note about deprecation of PayInlineKeyboardButton 2021-10-01 19:57:03 +06:00
InsanusMokrassar 9a3fc19992 update packages_publish workflow 2021-10-01 19:42:12 +06:00
InsanusMokrassar 7f9faa69c8 new dsls for keyboards #472 2021-10-01 19:38:51 +06:00
InsanusMokrassar 5b98c5f821 update dependencies 2021-10-01 16:40:04 +06:00
InsanusMokrassar 40bd8d0987 update dependencies 2021-10-01 15:46:07 +06:00
InsanusMokrassar 2aa6497374 start 0.36.0 2021-10-01 15:45:37 +06:00
InsanusMokrassar b9cb7b62fa setup toolchain for java targets 2021-09-23 13:15:44 +06:00
InsanusMokrassar 04679beb52 Update packages_publishing.yml 2021-09-22 20:15:48 +06:00
InsanusMokrassar 64e9289afb Delete build.yml 2021-09-22 20:14:58 +06:00
InsanusMokrassar d4f24ee0cd Merge pull request #461 from InsanusMokrassar/0.35.9
0.35.9
2021-09-21 23:17:32 +06:00
InsanusMokrassar 3e5d939ea5 factory functions of BehaviourContextReceiver's, updates in kdocs and operations for these receivers filters 2021-09-21 21:36:52 +06:00
InsanusMokrassar 24f91e4aee Fix of #464 2021-09-21 20:50:59 +06:00
InsanusMokrassar fe169fafaf add kdocs to LocationContent 2021-09-21 18:57:12 +06:00
InsanusMokrassar aeb6fad409 add LocationContent#copy 2021-09-21 18:49:29 +06:00
InsanusMokrassar 94ad758814 deprecate old API in Behaviour Builder 2021-09-21 18:39:05 +06:00
InsanusMokrassar 5f01e26377 Update CHANGELOG.md 2021-09-21 16:24:12 +06:00
InsanusMokrassar f82ac0ce9d Update gradle.properties 2021-09-21 16:23:47 +06:00
InsanusMokrassar c8491765e9 update dependencies 2021-09-19 15:27:01 +06:00
InsanusMokrassar 53a3e11836 fix CustomBotAction annotations 2021-09-17 16:50:54 +06:00
InsanusMokrassar fcccbe3252 Update CHANGELOG.md 2021-09-17 09:17:48 +06:00
InsanusMokrassar 584bf06109 Update gradle.properties 2021-09-17 09:17:28 +06:00
InsanusMokrassar ef0083079e Update gradle.properties 2021-09-16 10:09:28 +06:00
InsanusMokrassar 0d01e9bc78 add kdocs for filters 2021-09-15 15:07:38 +06:00
InsanusMokrassar 89aef3d77b kdocs for triggers in behaviour builder 2021-09-15 14:58:45 +06:00
InsanusMokrassar 24c47b00d4 BehaviourContext#followLocation 2021-09-14 16:16:06 +06:00
InsanusMokrassar a046a72392 waitEditedContent* extensions 2021-09-14 16:04:58 +06:00
InsanusMokrassar a5a530c9bd TelegramBot#answer 2021-09-14 15:51:05 +06:00
InsanusMokrassar 9cf82a3564 subcontext filter and inBlock filter in behaviour context triggers 2021-09-13 23:30:01 +06:00
InsanusMokrassar 46cc37be62 LocationContent -> LiveLocationContent / StaticLocationContent 2021-09-12 17:15:58 +06:00
InsanusMokrassar 1fbaf396aa update micro_utils 2021-09-12 15:48:33 +06:00
InsanusMokrassar 76985501f5 CustomBotAction 2021-09-12 15:32:36 +06:00
InsanusMokrassar 8d8bcfba01 start 0.35.9 2021-09-12 15:29:19 +06:00
InsanusMokrassar e0f3957249 Update CHANGELOG.md 2021-09-09 00:42:57 +06:00
InsanusMokrassar 3f1b018808 Merge pull request #457 from InsanusMokrassar/0.35.8
0.35.8
2021-09-08 22:43:23 +06:00
InsanusMokrassar 7af5ab17b7 Fixes in TelegramBot#withAction 2021-09-08 22:19:08 +06:00
InsanusMokrassar 0fec35f0dc BehaviourContext#commandWithArgs and BehaviourContext#onCommandWithArgs 2021-09-08 21:31:43 +06:00
InsanusMokrassar ee81f49a75 add docs for InputFile 2021-09-08 21:13:42 +06:00
InsanusMokrassar 807952201b MPPFile#asMultipartFile 2021-09-08 20:58:44 +06:00
InsanusMokrassar 5d6ba0f59e MultipartRequestCallFactory improvements 2021-09-08 20:05:53 +06:00
InsanusMokrassar 3a61b522ab update dependencies 2021-09-08 19:59:29 +06:00
InsanusMokrassar 83304023a6 start 0.35.8 2021-09-08 19:57:22 +06:00
InsanusMokrassar f62e13aaca Merge pull request #450 from InsanusMokrassar/0.35.7
0.35.7
2021-09-04 17:38:44 +06:00
InsanusMokrassar ae1fb25336 update dependencies 2021-09-04 17:25:29 +06:00
InsanusMokrassar 4e3ea6cd80 fixes of annotations 2021-08-30 21:02:51 +06:00
InsanusMokrassar 148203eabf update klock 2021-08-30 18:55:13 +06:00
InsanusMokrassar 4465b573ca update dependencies 2021-08-27 19:58:21 +06:00
InsanusMokrassar f0dda60630 start 0.35.7 2021-08-27 19:56:18 +06:00
InsanusMokrassar 47135a1b65 Merge pull request #444 from InsanusMokrassar/0.35.6
0.35.6
2021-08-23 22:26:56 +06:00
InsanusMokrassar d8f830c60f FlowsUpdatesFilter update 2021-08-22 23:14:56 +06:00
InsanusMokrassar 226b8dee21 deprecate allSentMessagesFlow and allSentMedaGroupsFlow 2021-08-22 23:13:59 +06:00
InsanusMokrassar a109771d20 update structure schema 2021-08-22 12:10:05 +06:00
InsanusMokrassar c028434f30 update gradle wrapper 2021-08-22 11:09:35 +06:00
InsanusMokrassar d5c6ce32bb fixes in readme :) 2021-08-22 11:02:14 +06:00
InsanusMokrassar d92cac5e07 small updates in readmes 2021-08-22 10:59:01 +06:00
InsanusMokrassar 9b21b5290c update dokka 2021-08-22 10:53:12 +06:00
InsanusMokrassar 13ca63d27d update dependencies 2021-08-22 10:47:23 +06:00
InsanusMokrassar ad917dda1b start 0.35.6 2021-08-22 10:35:55 +06:00
InsanusMokrassar 7b1344e9c8 Merge pull request #440 from InsanusMokrassar/0.35.5
0.35.5
2021-08-13 20:51:02 +06:00
InsanusMokrassar c4fbd2f1c6 revert type of BuiltinMimeTypes 2021-08-13 18:39:46 +06:00
InsanusMokrassar c90bcea42c add additional mime types 2021-08-13 18:39:08 +06:00
InsanusMokrassar e75c93d626 remove mime types from requests 2021-08-13 14:02:39 +06:00
InsanusMokrassar 58dcbe8751 StorageFile#asMultipartFile 2021-08-13 11:45:36 +06:00
InsanusMokrassar 17806cde25 add calculation of mimed type from TelegramMediaFile when it is MimedFile 2021-08-13 11:43:36 +06:00
InsanusMokrassar f147a3d620 fix of package for AdditionalContentAsStorageFile 2021-08-13 11:41:57 +06:00
InsanusMokrassar 9eb6008a73 convertToStorageFile 2021-08-13 11:37:01 +06:00
InsanusMokrassar f7d2c8bbd2 hotfix 2021-08-10 16:54:15 +06:00
InsanusMokrassar f42cf78969 fixes 2021-08-10 16:50:50 +06:00
InsanusMokrassar 9a14932511 small improvement of DownloadFileRequestCallFactory 2021-08-10 11:32:22 +06:00
InsanusMokrassar 149ecf175b small improvement of DownloadFileChannelRequestCallFactory 2021-08-10 11:29:46 +06:00
InsanusMokrassar 2049fea82a new asStorageFile 2021-08-10 11:08:08 +06:00
InsanusMokrassar 40d94cca70 improvements in files downloading api 2021-08-10 10:34:59 +06:00
InsanusMokrassar c8ad68ea69 make ByteReadChannelAllocatorSerializer -> ByteReadChannelAllocatorDeserializationStrategy 2021-08-10 10:12:22 +06:00
InsanusMokrassar c66d64adbc renames 2021-08-09 23:24:12 +06:00
InsanusMokrassar b475976ff1 add streaming file downloading feature 2021-08-09 23:22:08 +06:00
InsanusMokrassar ea8db5b851 rename JVM DownloadFile file 2021-08-09 20:01:26 +06:00
InsanusMokrassar af2fabf1ca fix changelog 2021-08-09 19:55:51 +06:00
InsanusMokrassar abc0457a36 files downloading improvements 2021-08-09 19:55:08 +06:00
InsanusMokrassar 8dbdbdee13 start 0.35.5 2021-08-09 19:39:03 +06:00
InsanusMokrassar 0c31379ff5 Merge pull request #439 from InsanusMokrassar/0.35.4
0.35.4
2021-08-09 14:18:19 +06:00
InsanusMokrassar 3b3cf81aaa Update CHANGELOG.md 2021-08-09 12:26:37 +06:00
InsanusMokrassar 1642075a75 Update microutils 2021-08-09 12:21:51 +06:00
InsanusMokrassar 760c9f2916 start 0.35.4 2021-08-09 12:21:27 +06:00
InsanusMokrassar 219238cf19 Merge pull request #436 from InsanusMokrassar/0.35.3
0.35.3
2021-08-08 18:48:45 +06:00
InsanusMokrassar 762087fc09 optimize imports 2021-08-08 18:00:42 +06:00
InsanusMokrassar 142fae1ede remove WithLanguageCode 2021-08-08 17:55:27 +06:00
InsanusMokrassar 95abc72bf3 WithOptionalLanguageCode?.javaLocale 2021-08-08 17:47:18 +06:00
InsanusMokrassar 1d37a7446c add companions for SimpleRequestCallFactory and MultipartRequestCallFactory 2021-08-08 17:44:20 +06:00
InsanusMokrassar 7d35114b5d classcasts fill for WithOptionalLanguageCode 2021-08-08 16:43:49 +06:00
InsanusMokrassar 75f4226772 base ktor request call factories became classes to avoid sharing of their cache between bots 2021-08-08 16:14:43 +06:00
InsanusMokrassar 96d980cb8a fix build 2021-08-06 12:02:26 +06:00
InsanusMokrassar ed077ae1bc filters in waiters 2021-08-06 10:32:31 +06:00
InsanusMokrassar 9540797ffc Revert "update classcasts"
This reverts commit 217b01994e.
2021-08-06 09:15:30 +06:00
InsanusMokrassar 217b01994e update classcasts 2021-08-05 23:54:30 +06:00
InsanusMokrassar 6b89c94ef1 include support of ietf language codes 2021-08-05 23:36:01 +06:00
InsanusMokrassar e25ce57f6a update microutils version 2021-08-05 23:12:17 +06:00
InsanusMokrassar 530394fd15 SimpleFilter 2021-08-03 11:46:23 +06:00
InsanusMokrassar 3e891d50fd downloadFile for MediaContent 2021-08-03 11:33:52 +06:00
InsanusMokrassar adf5fd6288 improvements in buildBehaviour 2021-08-03 11:27:39 +06:00
InsanusMokrassar e7a2dc51aa update dependencies 2021-08-03 11:18:30 +06:00
InsanusMokrassar 399793243b start 0.35.3 2021-08-03 11:14:21 +06:00
InsanusMokrassar 3801025ff1 Merge pull request #428 from InsanusMokrassar/0.35.2
0.35.2
2021-07-17 13:43:02 +06:00
InsanusMokrassar 0ad2d9afc4 Fill changelog with versions updates 2021-07-17 13:40:05 +06:00
InsanusMokrassar a303700b56 Update gradle.properties 2021-07-15 23:00:08 +06:00
InsanusMokrassar 42bf896f7a Update gradle.properties 2021-07-10 00:42:04 +06:00
InsanusMokrassar 0bce522101 Update gradle.properties 2021-07-10 00:03:20 +06:00
InsanusMokrassar 3c75d6a2c7 Update dependencies 2021-07-09 11:23:33 +06:00
InsanusMokrassar 93eebe37ce Update CHANGELOG.md 2021-07-09 11:20:33 +06:00
InsanusMokrassar f893803939 start 0.35.2 2021-07-09 11:18:54 +06:00
InsanusMokrassar 0b92edc05e Update gradle-wrapper.properties 2021-07-03 23:41:48 +06:00
InsanusMokrassar 190d83b22b Merge pull request #421 from InsanusMokrassar/0.35.1
0.35.1
2021-06-30 14:51:30 +06:00
InsanusMokrassar 7ec4fc460a fix build 2021-06-30 14:01:59 +06:00
InsanusMokrassar 75cebf5aa3 add GetUpdatesConflict 2021-06-30 13:57:20 +06:00
InsanusMokrassar a241c91adf waitContentMessage with includeMediaGroups 2021-06-30 11:45:56 +06:00
InsanusMokrassar 4f920abb61 upfixes 2021-06-30 11:26:31 +06:00
InsanusMokrassar 6ba9a31fb9 seal of MediaGroupUpdates 2021-06-30 11:12:09 +06:00
InsanusMokrassar 65801f5104 Update CHANGELOG.md 2021-06-30 10:40:23 +06:00
InsanusMokrassar 9e82211473 Merge pull request #422 from eboshare/0.35.1
Add Update#sourceUser method
2021-06-30 10:39:00 +06:00
Vasya 560179a574 simplify Update#sourceUser 2021-06-29 21:47:15 +03:00
Vasya cffcf2277e add asFromUser, whenFromUser, requireFromUser to ClassCasts.kt 2021-06-29 21:35:46 +03:00
Vasya cb9a20a9d1 Merge remote-tracking branch 'upstream/0.35.1' into 0.35.1
# Conflicts:
#	tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/InlineQueries/abstracts/ChosenInlineResult.kt
2021-06-29 21:23:20 +03:00
vasya 45ea103c9a bring back strange InsanusMokrassar's space :) 2021-06-29 21:08:41 +03:00
vasya c00adb0784 remove redundant import in LeftChatMember.kt 2021-06-29 21:07:18 +03:00
vasya 38826a5e7e remove FromUser interface from RawChosenInlineResult 2021-06-29 21:06:46 +03:00
InsanusMokrassar b2915857d7 remove usages of deprecated ChosenInlineResult 2021-06-29 11:55:46 +06:00
InsanusMokrassar 067e36adc6 ChosenInlineResult now is sealed 2021-06-29 11:53:36 +06:00
vasya 12a35da4b6 remove unnecessary FromUser usages 2021-06-29 03:34:27 +03:00
vasya 022e6f623a add FromUser interface to objects where field user is present 2021-06-29 00:57:32 +03:00
vasya 30c138029e add asFromUserMessage calls to Update#sourceUser 2021-06-29 00:37:53 +03:00
InsanusMokrassar 732e2a3906 serializable subclasses of MessageContent 2021-06-29 00:06:07 +06:00
InsanusMokrassar c5e089a45d make*String extensions 2021-06-29 00:01:40 +06:00
vasya 919b1590e3 add Update#sourceUser method 2021-06-28 20:30:12 +03:00
InsanusMokrassar 0c1017901f optimize imports 2021-06-28 11:12:51 +06:00
InsanusMokrassar fd6e4b0522 final refactor, fixes and upfilling of changelog 2021-06-28 11:10:09 +06:00
InsanusMokrassar 21c5d42dc2 BehaviourContext now is interface 2021-06-28 10:29:45 +06:00
InsanusMokrassar 77dff639f0 updates 2021-06-28 01:00:20 +06:00
InsanusMokrassar 47fe048b10 refactor and fixes in ContentTriggers 2021-06-27 19:28:21 +06:00
InsanusMokrassar ee8cc2aa46 defaultExceptionsHandler in behaviour builder 2021-06-26 17:05:34 +06:00
InsanusMokrassar b9de002517 rewrite to use subscribeSafelyWithoutExceptionsAsync in triggers of behaviour builder 2021-06-26 12:15:52 +06:00
InsanusMokrassar 449f2727c4 update dependencies 2021-06-26 02:04:08 +06:00
InsanusMokrassar 8712914126 update actuality of core 2021-06-26 01:59:25 +06:00
InsanusMokrassar 69b64e9908 and more... :) 2021-06-26 01:58:20 +06:00
InsanusMokrassar 656bb68739 add support of input_field_placeholder 2021-06-26 01:48:41 +06:00
InsanusMokrassar 7f69052dea *MyCommands actualization 2021-06-26 01:42:35 +06:00
InsanusMokrassar b60fab4871 BotCommandScope 2021-06-26 01:27:28 +06:00
InsanusMokrassar bf28a8b0a6 add performInParallel for behaviour builder 2021-06-25 12:45:20 +06:00
InsanusMokrassar 85270dd12d update micro_utils 2021-06-24 14:34:58 +06:00
InsanusMokrassar e39dd2d086 remove redundant fsm module 2021-06-24 12:56:40 +06:00
InsanusMokrassar e10d47b7e4 fill changelog 2021-06-24 12:56:15 +06:00
InsanusMokrassar 1e181bc042 fixes 2021-06-24 12:54:50 +06:00
InsanusMokrassar 61cf9936fb complete migration of replies 2021-06-24 12:49:47 +06:00
InsanusMokrassar 65fd3ced36 start replacement of reply methods 2021-06-24 11:21:02 +06:00
InsanusMokrassar 66d37b72eb add when* syntax 2021-06-23 22:14:45 +06:00
InsanusMokrassar 55b1d3734d telegramBotWithBehaviour 2021-06-23 21:51:30 +06:00
InsanusMokrassar 45b32fd6f7 start 0.35.1 2021-06-23 21:20:28 +06:00
InsanusMokrassar fcd8f20a90 Update README.md 2021-06-17 15:34:53 +06:00
InsanusMokrassar 18e6b9e471 Merge pull request #395 from InsanusMokrassar/0.35.0
0.35.0
2021-06-06 09:05:09 +06:00
InsanusMokrassar f5b248f534 update micro_utils 2021-06-05 15:48:38 +06:00
InsanusMokrassar 3ebcbe2860 builder extending 2021-06-04 01:07:53 +06:00
InsanusMokrassar 3829e04b0c Update CHANGELOG.md 2021-06-04 00:32:42 +06:00
InsanusMokrassar 39fa36426f Update CHANGELOG.md 2021-06-03 23:25:19 +06:00
InsanusMokrassar a265e5ecbf Update CHANGELOG.md 2021-06-03 23:09:46 +06:00
InsanusMokrassar 86e78c4ba0 Update packages_publishing.yml 2021-05-30 01:20:25 +06:00
InsanusMokrassar a6451ca394 update workflows to separate build and publishing 2021-05-29 17:05:18 +06:00
InsanusMokrassar 521a3a8c35 fix internal deprecations 2021-05-29 16:02:55 +06:00
InsanusMokrassar 173839c677 small refactoring 2021-05-29 15:51:45 +06:00
InsanusMokrassar bb7d47a33b fix build 2021-05-29 15:46:13 +06:00
InsanusMokrassar 5c0e58caec buildable except of jvm tests 2021-05-29 15:34:14 +06:00
InsanusMokrassar 72c3623d30 small fillup of changelog 2021-05-29 14:32:45 +06:00
InsanusMokrassar fe1831fc19 deprecations removed 2021-05-29 14:31:44 +06:00
InsanusMokrassar 7825ec3010 a lot of types has been converted to sealed 2021-05-29 14:23:25 +06:00
InsanusMokrassar 12184cd2be InlineKeyboardButton now is an interface 2021-05-29 13:40:48 +06:00
InsanusMokrassar e90e25ab01 BotAction now is an interface 2021-05-29 13:39:43 +06:00
InsanusMokrassar 004ff0b490 update dependencies and changelog 2021-05-29 13:29:01 +06:00
InsanusMokrassar 07faba7d38 Update CHANGELOG.md 2021-05-27 00:04:42 +06:00
InsanusMokrassar e5584cd8b4 Update gradle.properties 2021-05-27 00:04:11 +06:00
InsanusMokrassar 6acc9ef2b0 update klock 2021-05-26 22:00:57 +06:00
InsanusMokrassar 169fc0401a update dependencies 2021-05-26 21:55:09 +06:00
InsanusMokrassar dcfcea65cb start 0.35.0 2021-05-26 21:51:29 +06:00
InsanusMokrassar eedb36ede7 Merge pull request #383 from InsanusMokrassar/gradle-wrapper/6.9
Update gradle-wrapper
2021-05-08 17:19:21 +06:00
InsanusMokrassar eaee334ff6 Update gradle-wrapper.properties 2021-05-08 16:44:14 +06:00
InsanusMokrassar 5c694e8625 Update CHANGELOG.md 2021-05-06 13:24:23 +06:00
InsanusMokrassar 0306c40fb2 Update CHANGELOG.md 2021-05-06 13:24:11 +06:00
InsanusMokrassar fd915553e3 Merge pull request #381 from InsanusMokrassar/0.34.1
0.34.1
2021-05-05 19:37:32 +06:00
InsanusMokrassar ec1c0ba8bb update microutils 2021-05-05 19:20:51 +06:00
InsanusMokrassar 12a64ec1d1 update ktor 2021-05-05 19:12:59 +06:00
InsanusMokrassar 59d7a7c781 fix in text sources list creating 2021-05-05 19:02:22 +06:00
InsanusMokrassar cabfd7c76b start 0.34.1 2021-05-05 18:53:26 +06:00
InsanusMokrassar f12f52899c Merge pull request #369 from InsanusMokrassar/renovate/org.jetbrains.dokka-gfm-plugin-1.x
Update dependency org.jetbrains.dokka:gfm-plugin to v1.4.32
2021-04-30 09:55:54 +06:00
Renovate Bot ed067db20f Update dependency org.jetbrains.dokka:gfm-plugin to v1.4.32 2021-04-29 13:36:31 +00:00
InsanusMokrassar b055268979 Merge pull request #362 from InsanusMokrassar/0.34.0
0.34.0
2021-04-29 19:03:29 +06:00
InsanusMokrassar 2584839d66 update core readme 2021-04-29 19:02:51 +06:00
InsanusMokrassar 63946e860d note about UnknownExtendedChat 2021-04-29 17:45:19 +06:00
InsanusMokrassar 90df436c63 small refactor of usage TextedInput 2021-04-29 17:40:01 +06:00
InsanusMokrassar d3c8b49b10 Update CHANGELOG.md 2021-04-29 17:33:27 +06:00
InsanusMokrassar c1372b55bc Note about ChatType in CHANGRLOG 2021-04-29 15:26:08 +06:00
InsanusMokrassar b6c7ece995 small hotfix 2021-04-29 15:09:45 +06:00
InsanusMokrassar 44e7c80f43 remove redundant extensions for parseCommandsWithParams 2021-04-29 15:08:05 +06:00
InsanusMokrassar 1e41e95333 fixes in parseCommandsWithParams 2021-04-29 15:07:16 +06:00
InsanusMokrassar 03d4d715c0 hotfix 2021-04-29 11:59:44 +06:00
InsanusMokrassar ab060d02ea deprecate Explained 2021-04-29 11:59:44 +06:00
InsanusMokrassar f447be02dc Update InlineKeyboardMarkup.kt 2021-04-29 01:18:07 +06:00
InsanusMokrassar eb923a6338 fixes 2021-04-28 23:22:13 +06:00
InsanusMokrassar 0914710cc7 update voice chats 2021-04-28 20:08:02 +06:00
InsanusMokrassar 1f7450844f optimize imports 2021-04-28 19:59:30 +06:00
InsanusMokrassar 167c214e35 migration to avoid using of TextPart 2021-04-28 19:54:57 +06:00
InsanusMokrassar 42a8d649cd Update CHANGELOG.md 2021-04-27 23:43:04 +06:00
InsanusMokrassar eb3f180cc6 textSources now is main property 2021-04-27 16:08:36 +06:00
InsanusMokrassar 70f96ac8fa completing of captioned input deprecation 2021-04-26 21:34:13 +06:00
InsanusMokrassar d69b2e09d5 migration from CaptionedInput 2021-04-26 21:25:52 +06:00
InsanusMokrassar 946b0222df fix botaction tests 2021-04-26 21:10:38 +06:00
InsanusMokrassar 7da315dbaf fix botaction tests 2021-04-26 21:08:52 +06:00
InsanusMokrassar 87071ca52c deprecation of an old record audio and upload audio bot actions 2021-04-26 21:02:11 +06:00
InsanusMokrassar b2770e3ecc record_voice and upload_voice 2021-04-26 20:52:20 +06:00
InsanusMokrassar df63ccfe07 VoiceChatScheduled 2021-04-26 20:47:03 +06:00
InsanusMokrassar 694bec22a2 include chat_type 2021-04-26 20:42:26 +06:00
InsanusMokrassar 6a3588bb8d InputInvoiceMessageContent 2021-04-26 20:23:26 +06:00
InsanusMokrassar a26568aa29 maxTipAmounts and suggestedTipAmounts support in SendInvoice 2021-04-26 20:01:14 +06:00
InsanusMokrassar cd30660256 update SendInvoice 2021-04-26 19:28:19 +06:00
InsanusMokrassar 1846d20b0d start 0.34.0 2021-04-26 19:15:55 +06:00
InsanusMokrassar f13207064e Merge pull request #361 from InsanusMokrassar/0.33.4
0.33.4
2021-04-17 16:02:14 +06:00
InsanusMokrassar 61be689aca fix of build 2021-04-17 14:36:23 +06:00
InsanusMokrassar 03f8d65bb6 fix of build 2021-04-17 11:14:35 +06:00
InsanusMokrassar 2dc8beba8a update classcasts 2021-04-16 22:00:45 +06:00
InsanusMokrassar 5451adf4ac FromUserMessage extends Message 2021-04-16 18:07:27 +06:00
InsanusMokrassar 9982534001 updates in TextSourceSerializer 2021-04-15 14:34:05 +06:00
InsanusMokrassar c0451d4c8f Update gradle-wrapper.properties 2021-04-15 13:56:52 +06:00
InsanusMokrassar a9d65944e6 update MicroUtils 2021-04-13 15:53:35 +06:00
InsanusMokrassar 39598dcb69 fill CHANGELOG 2021-04-13 01:54:45 +06:00
InsanusMokrassar 3069a6084c fixes in parseCommandsWithParams 2021-04-13 01:50:41 +06:00
InsanusMokrassar e7bbce3fa7 update uuid dependency 2021-04-12 23:32:50 +06:00
InsanusMokrassar 0b361163f2 TextSourceSerializer 2021-04-12 23:23:18 +06:00
InsanusMokrassar 6aba2ff641 start 0.33.4 2021-04-12 20:57:12 +06:00
InsanusMokrassar 6b761ab37d Update gradle wrapper 2021-04-11 04:06:30 +06:00
InsanusMokrassar b9c8a89af9 Merge pull request #357 from InsanusMokrassar/0.33.3
0.33.3
2021-04-05 19:41:52 +06:00
InsanusMokrassar a42c5c63c4 fillup changelog 2021-04-05 19:08:12 +06:00
InsanusMokrassar fc1a029acb fix of #358 2021-04-05 19:06:49 +06:00
InsanusMokrassar f90ae2f918 include weakLaunch in behaviour builder 2021-04-05 18:15:10 +06:00
InsanusMokrassar 019b260888 update ktor 2021-04-05 18:11:29 +06:00
InsanusMokrassar 0831f2fa75 update microutils 2021-04-05 17:21:59 +06:00
InsanusMokrassar 32ae9d2b16 hotfix 2021-04-05 16:50:31 +06:00
InsanusMokrassar b975a1b036 updates in behaviour builder 2021-04-05 16:41:27 +06:00
InsanusMokrassar f4b1e4a150 start 0.33.3 2021-04-05 13:42:48 +06:00
InsanusMokrassar 97031512d4 Merge pull request #356 from InsanusMokrassar/0.33.2
0.33.2
2021-04-03 15:39:14 +06:00
InsanusMokrassar 353df43109 update microutils 2021-04-03 15:13:20 +06:00
InsanusMokrassar 4e55460834 fix in doInSubContext 2021-04-03 15:05:25 +06:00
InsanusMokrassar e2e235bd6c behaviour builder updates 2021-04-03 14:51:21 +06:00
InsanusMokrassar 8ced95bc2f start 0.33.2 2021-04-03 14:24:24 +06:00
InsanusMokrassar 685e4af8f5 Merge pull request #345 from InsanusMokrassar/0.33.1
0.33.1
2021-03-26 09:13:15 +06:00
InsanusMokrassar 0b2f7a3899 update condition for ReplyMessageNotFoundException 2021-03-26 07:03:33 +06:00
InsanusMokrassar 112c86c9da remove caption based messages extension for parsing of commands 2021-03-24 13:56:51 +06:00
InsanusMokrassar 1ddd138ff7 update kdocs for new function 2021-03-24 13:44:27 +06:00
InsanusMokrassar 1a5d1cde78 add parseCommandsWithParams for text inputs 2021-03-24 13:43:32 +06:00
InsanusMokrassar 5b620014cb update kotlin version 2021-03-24 13:14:09 +06:00
InsanusMokrassar 80093cb5a9 Update kdocs.yml 2021-03-21 23:22:16 +06:00
InsanusMokrassar 9f8e8ee21b update dependencies 2021-03-19 20:20:07 +06:00
InsanusMokrassar 3de3bb6133 start 0.33.1 2021-03-19 20:18:32 +06:00
InsanusMokrassar 308fb9274b Update kdocs.yml 2021-03-17 21:14:05 +06:00
InsanusMokrassar d14ca7bbdc Update kdocs.yml 2021-03-17 21:13:52 +06:00
InsanusMokrassar dbdd9b5ad2 update dokka 2021-03-16 23:01:26 +06:00
InsanusMokrassar 6dd27cb0bf fixes in names of workflows 2021-03-16 22:41:45 +06:00
InsanusMokrassar 210a52485b add kdocs yml config 2021-03-16 22:39:54 +06:00
InsanusMokrassar 5c11b60ea6 fix dokka config 2021-03-16 22:33:53 +06:00
InsanusMokrassar 60c3a0d7af update core info about current version 2021-03-16 22:21:15 +06:00
InsanusMokrassar 8d777e1c0e Update dokka version 2021-03-16 16:30:13 +06:00
InsanusMokrassar 4e019eb8bb Update packages_publishing.yml 2021-03-12 20:11:26 +06:00
InsanusMokrassar bd80562c2a Merge pull request #337 from InsanusMokrassar/0.33.0
0.33.0
2021-03-12 15:47:24 +06:00
InsanusMokrassar 9fc07f2ff3 fix build 2021-03-12 15:03:11 +06:00
InsanusMokrassar a4bae5133a fill changelog 2021-03-12 14:58:13 +06:00
InsanusMokrassar 7bb272f2fa update compatibility note 2021-03-12 14:39:27 +06:00
InsanusMokrassar 72cf38d3bb fill Behaviour Builder for ChatMemberUpdated 2021-03-12 14:36:10 +06:00
InsanusMokrassar 0adee13cba remove deprecations 2021-03-11 22:28:56 +06:00
InsanusMokrassar f9e3e57f24 migrate 0.32.10 -> 0.33.0 2021-03-11 21:44:08 +06:00
InsanusMokrassar d7d4adc8e4 optimize imports 2021-03-11 21:39:34 +06:00
InsanusMokrassar e9b074a36c updates of FlowsUpdatesFilter 2021-03-11 21:36:29 +06:00
InsanusMokrassar 65cba0f014 fill api of chat invite links 2021-03-11 21:25:11 +06:00
InsanusMokrassar 36202133a1 update classcasts 2021-03-11 21:06:25 +06:00
InsanusMokrassar 66f7801b32 fix ChatInviteLinkRequest 2021-03-11 20:41:47 +06:00
InsanusMokrassar e7265829d1 include ChatMemberUpdated functionality 2021-03-11 20:17:08 +06:00
InsanusMokrassar 9ad5bfbc57 remove BotInviteChatLink 2021-03-11 16:36:15 +06:00
InsanusMokrassar aba62ba930 chatmember serializers are public 2021-03-11 16:00:47 +06:00
InsanusMokrassar 40d702a311 add representations of all chat invite link functionality 2021-03-10 22:46:56 +06:00
InsanusMokrassar 233d893b5a add isOff extension for MessageAutoDeleteTimerChanged 2021-03-09 22:33:05 +06:00
InsanusMokrassar 0faca5838c fixes in events builder behaviours 2021-03-09 22:14:16 +06:00
InsanusMokrassar 838f62aa84 shortcuts seconds24Hours and seconds7Days are consts for now 2021-03-09 22:06:20 +06:00
InsanusMokrassar bc21a680bc fixes for MessageAutoDeleteTimerChanged 2021-03-09 22:00:17 +06:00
InsanusMokrassar 8bb60bea34 now MessageAutoDeleteTimerChanged implementing ChannelEvent and GroupEvent 2021-03-09 21:37:25 +06:00
InsanusMokrassar 8daadcff95 now MessageAutoDeleteTimerChanged implementing ChannelEvent and GroupEvent 2021-03-09 21:35:53 +06:00
InsanusMokrassar 2a1e624641 VoiceChatParticipantsInvited type now is data class 2021-03-09 20:23:03 +06:00
InsanusMokrassar 696822db02 add behaviour builder events updates 2021-03-09 20:04:44 +06:00
InsanusMokrassar ded501d963 remove regular build 2021-03-09 19:52:46 +06:00
InsanusMokrassar 86e506c33d include message_auto_delete_timer_change 2021-03-09 19:45:19 +06:00
InsanusMokrassar 9902b00e85 include revokeMessages in kickChatMember 2021-03-09 19:33:05 +06:00
InsanusMokrassar 53524abcbb include canManageChat 2021-03-09 19:26:30 +06:00
InsanusMokrassar 7639b15dc6 voice chats functionality included 2021-03-09 19:19:15 +06:00
InsanusMokrassar 61b720c61f fix of content waiters and expecters 2021-03-09 16:54:32 +06:00
InsanusMokrassar baf4c74b69 update micro_utils 2021-03-09 16:46:08 +06:00
InsanusMokrassar 367cfff2cb start 0.32.10 2021-03-09 16:45:13 +06:00
InsanusMokrassar 75e8d0f62d Merge pull request #325 from InsanusMokrassar/0.32.9
0.32.9
2021-03-05 01:08:58 +06:00
InsanusMokrassar c521a5f9a4 Update CHANGELOG.md 2021-03-03 22:32:44 +06:00
InsanusMokrassar c5513365c2 Update gradle.properties 2021-03-03 22:31:29 +06:00
InsanusMokrassar d184ce7a0f Update mpp_publish_template.kpsb 2021-03-03 01:39:18 +06:00
InsanusMokrassar a3bff3f24d Update publish.gradle 2021-03-03 01:37:38 +06:00
InsanusMokrassar a835b1dcbb Update mpp_publish_template.kpsb 2021-03-03 01:33:50 +06:00
InsanusMokrassar ffed2b80a5 update publish scripts to avoid useless repos 2021-03-02 16:45:13 +06:00
InsanusMokrassar ff24b9f35b add workflow for packages publication 2021-03-02 16:25:55 +06:00
InsanusMokrassar 1287852334 update microutils version 2021-03-02 15:26:52 +06:00
InsanusMokrassar fc2f177e38 update dependencies 2021-02-28 22:24:34 +06:00
InsanusMokrassar 1efd4dce6e start 0.32.9 2021-02-28 22:21:57 +06:00
InsanusMokrassar 69b5a16b17 Update gradle-wrapper.properties 2021-02-23 09:53:45 +06:00
InsanusMokrassar 77b531ad06 Merge pull request #307 from InsanusMokrassar/0.32.8
0.32.8
2021-02-22 01:35:40 +06:00
InsanusMokrassar a98d5d9abd update micro_utils 2021-02-21 22:50:47 +06:00
InsanusMokrassar 104653ac41 update serialization 2021-02-21 21:15:40 +06:00
InsanusMokrassar 63337b8285 start 0.32.8 2021-02-21 21:13:23 +06:00
InsanusMokrassar 5cc0bbb31b Merge pull request #303 from InsanusMokrassar/0.32.7
0.32.7
2021-02-18 00:34:46 +06:00
InsanusMokrassar 563d784603 RestrictionsChatPermissions 2021-02-18 00:28:36 +06:00
InsanusMokrassar 0d9f18f346 DiceAnimationType class casts 2021-02-17 22:29:29 +06:00
InsanusMokrassar 23ceaf8e97 LeftRestrictionsChatPermissions 2021-02-17 22:12:58 +06:00
InsanusMokrassar fe2dffd8b5 BehaviourContext updates 2021-02-17 22:11:26 +06:00
InsanusMokrassar eeb46817c3 start 0.32.7 2021-02-17 22:00:46 +06:00
InsanusMokrassar 5ab00da31d Merge pull request #300 from InsanusMokrassar/0.32.6
0.32.6
2021-02-17 17:15:40 +06:00
InsanusMokrassar 841ae73f7c replyWithDice 2021-02-17 17:10:21 +06:00
InsanusMokrassar 41b4d29917 updates in slot machine utils 2021-02-17 16:58:57 +06:00
InsanusMokrassar f8b3c44146 update micro_utils 2021-02-16 13:48:32 +06:00
InsanusMokrassar f0eb670c3f start 0.32.6 2021-02-16 13:47:31 +06:00
InsanusMokrassar fe5d94f31e Update README.md 2021-02-13 10:09:33 +06:00
InsanusMokrassar 7901d0a223 Update README.md 2021-02-13 01:42:35 +06:00
InsanusMokrassar 799f9123ba Update README.md 2021-02-13 01:38:31 +06:00
InsanusMokrassar f77f010e66 Update README.md 2021-02-11 13:38:55 +06:00
InsanusMokrassar 67ddf8d809 Update README.md 2021-02-11 13:37:24 +06:00
InsanusMokrassar 81afa46253 Update README.md 2021-02-11 13:36:53 +06:00
InsanusMokrassar a5bba76f07 Update README.md 2021-02-11 13:35:06 +06:00
InsanusMokrassar d882cf9c97 update readme 2021-02-11 12:06:34 +06:00
InsanusMokrassar 2e27b8b64d Merge pull request #295 from InsanusMokrassar/0.32.5
0.32.5
2021-02-09 19:13:42 +06:00
InsanusMokrassar 4df800eaa9 fix of #291 2021-02-09 19:07:31 +06:00
InsanusMokrassar 8d27349868 update content resends and different other things 2021-02-09 18:26:10 +06:00
InsanusMokrassar 2a89c41a58 fix of #292 2021-02-09 17:15:28 +06:00
InsanusMokrassar 098b5cc393 rewrite createAccumulatedUpdatesRetrieverFlow onto channelFlow 2021-02-09 16:33:48 +06:00
InsanusMokrassar 10f4817283 solution of #293 2021-02-08 19:35:32 +06:00
InsanusMokrassar 4449893608 fix of #294 2021-02-08 18:15:54 +06:00
InsanusMokrassar 3a53f41f66 start 0.32.5 2021-02-08 11:36:20 +06:00
InsanusMokrassar 7cd366d893 Update README.md 2021-02-07 18:02:20 +06:00
InsanusMokrassar 1309a4111c Merge pull request #290 from InsanusMokrassar/0.32.4
content messages renames
2021-02-07 16:59:51 +06:00
InsanusMokrassar 0ca815760b content messages renames 2021-02-07 16:54:48 +06:00
InsanusMokrassar eca0680f2f update readme 2021-02-07 12:44:38 +06:00
InsanusMokrassar d472d371ed Merge pull request #282 from InsanusMokrassar/0.32.4
0.32.4
2021-02-07 12:43:08 +06:00
InsanusMokrassar 4748b6813a ExceptionsOnlyLimiter now will not use Result to provide success/failure state of result 2021-02-07 12:40:05 +06:00
InsanusMokrassar a2ea15d4b0 update wrapper version 2021-02-07 11:02:13 +06:00
InsanusMokrassar 27dc302f5d update for compiling 2021-02-06 11:53:30 +06:00
InsanusMokrassar baf8ed3a77 now JVM part will be compiled with IR 2021-02-06 00:52:39 +06:00
InsanusMokrassar 18913af3c3 update publishing scripts 2021-02-06 00:50:51 +06:00
InsanusMokrassar 51871ea94c update micro_utils version 2021-02-05 16:08:45 +06:00
InsanusMokrassar 6a625d7b9f update publishing scripts 2021-02-05 16:08:28 +06:00
InsanusMokrassar 0b93b472a3 update klock 2021-02-05 14:22:42 +06:00
InsanusMokrassar ff16f9a315 Update README.md 2021-02-05 01:18:38 +06:00
InsanusMokrassar 86bfe043a5 update dependencies 2021-02-03 23:05:17 +06:00
InsanusMokrassar fa18e7299d 0.32.4 2021-02-03 22:59:37 +06:00
InsanusMokrassar c986025075 Merge pull request #277 from InsanusMokrassar/0.32.3
0.32.3
2021-02-02 11:44:53 +06:00
InsanusMokrassar e8a7ea9ce4 inline qieries expectators and waiters 2021-02-02 11:17:51 +06:00
InsanusMokrassar 30f35e5488 start 0.32.3 2021-02-02 11:07:30 +06:00
InsanusMokrassar b626974ea7 Create dependabot.yml 2021-02-01 23:22:26 +06:00
InsanusMokrassar 128b782a27 Merge pull request #276 from InsanusMokrassar/0.32.2
0.32.2
2021-02-01 21:43:21 +06:00
InsanusMokrassar dc83b8d77a fix of #275 and several other internal problems 2021-02-01 21:09:11 +06:00
InsanusMokrassar 2aac6c0bde start 0.32.2 2021-02-01 21:04:54 +06:00
InsanusMokrassar b637d0d2a6 Merge pull request #274 from InsanusMokrassar/0.32.1
0.32.1
2021-01-30 21:06:15 +06:00
InsanusMokrassar d12cba2343 replacing of withContent and requireWithContent and extending of extensions receivers types 2021-01-30 20:59:26 +06:00
InsanusMokrassar 450c7e6474 fix of #273 2021-01-30 20:05:07 +06:00
InsanusMokrassar a35fb40a66 fix of #272 2021-01-30 19:35:53 +06:00
InsanusMokrassar 8731aa2c26 start 0.32.1 2021-01-30 19:33:38 +06:00
InsanusMokrassar 32e305537d Merge pull request #260 from InsanusMokrassar/0.32.0
0.32.0
2021-01-29 17:00:06 +06:00
InsanusMokrassar ec0a10e36e fillup changelog 2021-01-29 13:28:18 +06:00
InsanusMokrassar 131ec4d6d5 renames of EncryptedPassportElements 2021-01-29 12:44:13 +06:00
InsanusMokrassar ecc608f51a add additional variant of doInDecryptionContextWithPKCS8Key 2021-01-29 10:44:11 +06:00
InsanusMokrassar 040654f131 refill readme 2021-01-29 01:18:44 +06:00
InsanusMokrassar 9e73d0c461 add opportunity to manually set up delay for media groups webhooks 2021-01-29 00:56:47 +06:00
InsanusMokrassar d67c80bc99 ClassCasts update for SecureValue 2021-01-28 22:21:21 +06:00
InsanusMokrassar b0eef4f82d update ktor 2021-01-28 22:06:52 +06:00
InsanusMokrassar fbe91a6321 complete preview tools for passport 2021-01-28 22:03:14 +06:00
InsanusMokrassar 15066c9d63 add SecureData and DecryptedCredentials 2021-01-28 17:08:25 +06:00
InsanusMokrassar e0bf67d8f9 global update of passport 2021-01-28 16:03:30 +06:00
InsanusMokrassar 1dc3ce2fb5 add passport in API 2021-01-25 10:43:51 +06:00
InsanusMokrassar 0c71133969 add expectations and triggers for passport 2021-01-25 10:29:11 +06:00
InsanusMokrassar 1359dd549f Create regular-build.yml 2021-01-25 04:42:23 +06:00
InsanusMokrassar c425e2ecc3 update classcasts 2021-01-23 21:10:57 +06:00
InsanusMokrassar 4d63e3a17d complete tools for handling of encrypted data 2021-01-23 20:50:46 +06:00
InsanusMokrassar d34deade0d temporal state (currently tools for files decryption in JS do work 2021-01-23 18:49:41 +06:00
InsanusMokrassar 2f52ad45a4 add tools for passport files hashes calculation 2021-01-23 12:21:57 +06:00
InsanusMokrassar 1d99e632a4 fix of SetPassportDataErrors request parent interface 2021-01-22 23:40:33 +06:00
InsanusMokrassar cdcfaf5a29 fixes in passport errors serialization and replacing of PassportElementError 2021-01-22 23:14:24 +06:00
InsanusMokrassar f3590762f3 add PassportElementError realization 2021-01-22 23:01:37 +06:00
InsanusMokrassar e0ff14b7fe update gradle wrapper 2021-01-22 21:57:23 +06:00
InsanusMokrassar 9983e111ec update EncryptedElementSerializer 2021-01-22 21:53:37 +06:00
InsanusMokrassar 08b8710772 add asAction and several variants of oneOf 2021-01-19 20:19:28 +06:00
InsanusMokrassar fc71e028c4 improving work of behaviour_builder 2021-01-19 18:50:45 +06:00
InsanusMokrassar 30a4a7bd8b update micro_utils dependency 2021-01-19 13:52:06 +06:00
InsanusMokrassar b973278b0a add note about breaking changes 2021-01-19 11:00:12 +06:00
InsanusMokrassar ae2f4579e2 start 0.32.0 as a migration from 0.31.1 due to breaking changes in MediaGroupMessage type 2021-01-19 10:52:30 +06:00
InsanusMokrassar a4bf6911c7 Update micro_utils version note 2021-01-19 00:40:29 +06:00
InsanusMokrassar 73b3daa68b Update micro_utils dependency 2021-01-19 00:39:46 +06:00
InsanusMokrassar 09748615ae optimize imports 2021-01-18 23:43:21 +06:00
InsanusMokrassar 2dc8521aed now all data field are predecrypted with Base64StringSerializer 2021-01-17 16:44:56 +06:00
InsanusMokrassar 81de59f37c fix of translations in UtilityBill 2021-01-17 16:34:05 +06:00
InsanusMokrassar fb61a94c5e fix defaults in encrypted passport data 2021-01-17 16:30:25 +06:00
InsanusMokrassar 26fd5e51bf filesSize in PassportFile is nullable for now 2021-01-17 16:24:33 +06:00
InsanusMokrassar c1ab9da4c4 fix error with deserialization of passport data 2021-01-17 16:11:38 +06:00
InsanusMokrassar 6b414d64b0 remove redundant imports 2021-01-17 15:45:20 +06:00
InsanusMokrassar 5a3edc2b44 add passportMessages extension 2021-01-17 15:43:08 +06:00
InsanusMokrassar 6dcdc2ab7f now PassportMessage contains user too 2021-01-17 15:35:25 +06:00
InsanusMokrassar a2ae4f71de new PassportMessage type 2021-01-15 16:27:22 +06:00
InsanusMokrassar 5d87b86afe update passport data to use Base64StringSerializer 2021-01-15 16:02:16 +06:00
InsanusMokrassar ef22735894 add base64 serialization dependency and update micro_utils up to 0.4.17 2021-01-14 21:27:58 +06:00
InsanusMokrassar c0ea479fe3 add primitives for Telegram Passport API 2021-01-14 14:03:25 +06:00
InsanusMokrassar 0846e816e9 start 0.31.1 2021-01-14 12:37:31 +06:00
InsanusMokrassar d837c9d605 update publication scripts 2021-01-13 14:21:35 +06:00
InsanusMokrassar d1993842c3 Merge pull request #257 from InsanusMokrassar/0.31.0
0.31.0
2021-01-10 13:08:00 +06:00
InsanusMokrassar 4e8a9dcff0 update changelog 2021-01-09 22:35:41 +06:00
InsanusMokrassar 10eb15e172 several RiskFeature updates 2021-01-09 22:18:31 +06:00
InsanusMokrassar 0320da7614 updates in long polling methods 2021-01-09 22:10:38 +06:00
InsanusMokrassar 7aa3ff180e several refactoring things and docs appending 2021-01-09 21:50:02 +06:00
InsanusMokrassar a882a212c2 remove different internal strings things 2021-01-09 21:24:13 +06:00
InsanusMokrassar 1b15748f65 optimize imports 2021-01-09 20:59:37 +06:00
InsanusMokrassar 044fe5eadf full removing of old redundant "fullEntitiesList" 2021-01-09 20:52:21 +06:00
InsanusMokrassar 9453ec37e7 update gradle wrapper 2021-01-09 19:01:14 +06:00
InsanusMokrassar 3d0cbc2d2b small refactor 2021-01-09 19:00:41 +06:00
InsanusMokrassar 198b551ebf deprecations removing 2021-01-09 18:25:11 +06:00
InsanusMokrassar 1452e32293 behaviours documentatio and changing of buildBehaviour signature 2021-01-09 18:04:45 +06:00
InsanusMokrassar 946b7abcae start 0.31.0 2021-01-08 16:58:25 +06:00
InsanusMokrassar 879943622a Merge pull request #254 from InsanusMokrassar/0.30.13
0.30.13
2021-01-08 16:50:14 +06:00
InsanusMokrassar c0b4b523cf update micro_utils version 2021-01-08 16:41:08 +06:00
InsanusMokrassar 49e6e9cfe3 fix in new project publication scripts 2021-01-08 16:39:29 +06:00
InsanusMokrassar ffadb6355b fixes in readme 2021-01-08 16:37:03 +06:00
InsanusMokrassar 9cc402b42d ContentMessage -> CommonMessage in behaviour_builder, fill readme of behaviour_builder and update projects schema 2021-01-08 16:28:00 +06:00
InsanusMokrassar b9341f89ac add media groups triggers and waiters 2021-01-08 11:02:18 +06:00
InsanusMokrassar ac07f44c81 change public signature of waiters 2021-01-08 10:29:29 +06:00
InsanusMokrassar 2e53247726 now content waiters and triggers may have set up manually parameter "includeMediaGroups" 2021-01-08 10:22:29 +06:00
InsanusMokrassar e2dddf96a1 several small additions 2021-01-08 00:30:29 +06:00
InsanusMokrassar ce0fceb240 include media groups 2021-01-08 00:22:19 +06:00
InsanusMokrassar 633239961a update FlowsUsh 2021-01-07 19:02:35 +06:00
InsanusMokrassar 8b79b15777 FlowsUpdatesFilter#allUpdatesWithoutMediaGroupsGroupingFlow 2021-01-07 19:01:02 +06:00
InsanusMokrassar a28cf5ddff now BehaviourContext is UpdateFilterm TelegramBot and CoroutineScope 2021-01-07 18:20:23 +06:00
InsanusMokrassar 8c2cffc8e3 rename steps subproject to behaviour_builder 2021-01-07 18:17:50 +06:00
InsanusMokrassar b933361258 optimize imports in steps 2021-01-07 18:12:37 +06:00
InsanusMokrassar 383e722d07 rename scenario to behaviour context 2021-01-07 18:11:24 +06:00
InsanusMokrassar 3125c2fc1b add callback query expectations and triggers 2021-01-07 17:57:08 +06:00
InsanusMokrassar 965b8c3c50 add chat event triggers and expectations in steps 2021-01-07 17:24:58 +06:00
InsanusMokrassar 94745ef373 add docs to base expectations 2021-01-07 16:01:25 +06:00
InsanusMokrassar aee5ab564b optimize imports 2021-01-07 12:45:54 +06:00
InsanusMokrassar c70f0b65dd add content triggers and update command 2021-01-07 12:45:30 +06:00
InsanusMokrassar 30e6f68228 small update of scenarios 2021-01-06 23:21:33 +06:00
InsanusMokrassar 00873a255c preview state of steps 2021-01-06 23:06:48 +06:00
InsanusMokrassar 6bd423dc11 class casts for ResendableContent and TextSource 2021-01-06 20:49:55 +06:00
InsanusMokrassar c5ada8cea0 start 0.30.13 2021-01-06 15:41:27 +06:00
InsanusMokrassar 0cb3df4d1a Merge pull request #251 from InsanusMokrassar/0.3.12
0.3.12
2021-01-05 23:06:35 +06:00
868 changed files with 32188 additions and 8292 deletions

No files matched your search

+1 -3
View File
@@ -1,5 +1,3 @@
# These are supported funding model platforms
patreon: InsanusMokrassar
custom: ['https://paypal.me/InsanusMokrassar?locale.x=ru_RU']
custom: ['https://www.tinkoff.ru/rm/ovsyannikov.aleksey113/ObMJ712472']
+11
View File
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "gradle" # See documentation for possible values
directory: "/tgbotapi.core" # Location of package manifests
schedule:
interval: "daily"
+5 -3
View File
@@ -1,6 +1,8 @@
api: "TelegramBotAPI-extensions-api/**"
utils: "TelegramBotAPI-extensions-utils/**"
core: "TelegramBotAPI/**" # currently not work
api: "TelegramBotAPI-api/**"
utils: "TelegramBotAPI-utils/**"
behaviour-builder: "TelegramBotAPI-behaviour_builder/**"
behaviour-builder_fsm: "TelegramBotAPI-behaviour_builder-fsm/**"
core: "TelegramBotAPI-core/**" # currently not work
code: "**/*.kt"
gradle: "**/*.gradle"
+21
View File
@@ -0,0 +1,21 @@
name: Publish KDocs
on:
push:
branches:
- master
jobs:
publishing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Build
run: ./gradlew dokkaHtml
- name: Publish KDocs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/dokka/html
publish_branch: kdocs
+1
View File
@@ -12,6 +12,7 @@ on:
jobs:
triage:
runs-on: ubuntu-latest
if: ${{ github.actor == github.repository_owner }}
steps:
- uses: actions/labeler@v2
with:
+24
View File
@@ -0,0 +1,24 @@
name: Publish package to GitHub Packages
on: [push]
jobs:
publishing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Rewrite version
run: |
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
cat gradle.properties | sed -e "s/^library_version=\([0-9\.]*\)/library_version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp
rm gradle.properties
mv gradle.properties.tmp gradle.properties
- name: Build
run: ./gradlew build
- name: Publish
continue-on-error: true
run: ./gradlew publishAllPublicationsToGithubPackagesRepository --no-parallel
env:
GITHUBPACKAGES_USER: ${{ github.actor }}
GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
-1
View File
@@ -1 +0,0 @@
spellchecker: true
+1
View File
@@ -10,4 +10,5 @@ build/
out/
local.properties
kotlin-js-store/
secret.gradle
+1059
View File
File diff suppressed because it is too large. Load diff
+90 -128
View File
@@ -1,149 +1,111 @@
# TelegramBotAPI
# TelegramBotAPI [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi) [![Supported version](https://img.shields.io/badge/Telegram%20Bot%20API-6.1-blue)](https://core.telegram.org/bots/api-changelog#june-20-2022)
<details>
<summary><b>I do not wanna read a lot, just give me my bot</b></summary>
| [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin) [![Build Status](https://github.com/InsanusMokrassar/TelegramBotAPI/workflows/Build/badge.svg)](https://github.com/InsanusMokrassar/TelegramBotAPI/actions) [![Small survey](https://img.shields.io/static/v1?label=Google&message=Survey&color=blue&logo=google-sheets)](https://docs.google.com/forms/d/e/1FAIpQLSctdJHT_aEniyYT0-IUAEfo1hsIlezX2owlkEAYX4KPl2V2_A/viewform?usp=sf_link) [![Chat in Telegram](https://img.shields.io/static/v1?label=Telegram&message=Chat&color=blue&logo=telegram)](https://t.me/InMoTelegramBotAPI) |
|:---:|
| [![Create bot](https://img.shields.io/static/v1?label=Github&message=Template&color=blue&logo=github)](https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template/generate) [![Examples](https://img.shields.io/static/v1?label=Github&message=Examples&color=blue&logo=github)](https://github.com/InsanusMokrassar/TelegramBotAPI-examples/) [![KDocs](https://img.shields.io/static/v1?label=Dokka&message=KDocs&color=blue&logo=kotlin)](https://tgbotapi.inmo.dev/index.html) [![Mini tutorial](https://img.shields.io/static/v1?label=Bookstack&message=Tutorial&color=blue&logo=bookstack)](https://bookstack.inmo.dev/books/telegrambotapi/chapter/introduction-tutorial) |
You can simply use <a href="https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template">this template</a> (and button
<a href="https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template/generate">Use template</a>) to get your copy of bot and start to code.
<p></p>
<b>P.S. Do not forget to look into our <a href="https://bookstack.inmo.dev/books/telegrambotapi/">minidocs</a> and
<a href="https://tgbotapi.inmo.dev/docs/index.html">kdocs</a></b>
Hello! This is a set of libraries for working with Telegram Bot API.
</details>
## Examples
| Common info | [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin) [![Build Status](https://travis-ci.com/InsanusMokrassar/TelegramBotAPI.svg?branch=master)](https://travis-ci.com/InsanusMokrassar/TelegramBotAPI) [Small survey](https://forms.gle/2Hex2ynbHWHhi1KY7)|
| -------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Useful links | [![Chat in Telegram](badges/chat.svg)](https://t.me/InMoTelegramBotAPI) [![Create bot](badges/template.svg)](https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template/generate) [![KDocs](badges/kdocs.svg)](https://tgbotapi.inmo.dev/docs/index.html) [Examples](https://github.com/InsanusMokrassar/TelegramBotAPI-examples/), [Mini tutorial](https://bookstack.inmo.dev/books/telegrambotapi/chapter/introduction-tutorial) |
| TelegramBotAPI Core status | [![Download](https://api.bintray.com/packages/insanusmokrassar/TelegramBotAPI/tgbotapi.core/images/download.svg)](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi.core/_latestVersion) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.core) |
| TelegramBotAPI Extensions status | [![Download](https://api.bintray.com/packages/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api/images/download.svg)](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api/_latestVersion) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.api) |
| TelegramBotAPI Util Extensions status | [![Download](https://api.bintray.com/packages/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.utils/images/download.svg)](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.utils/_latestVersion) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.utils/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.utils) |
| TelegramBotAPI All status | [![Download](https://api.bintray.com/packages/insanusmokrassar/TelegramBotAPI/tgbotapi/images/download.svg)](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi/_latestVersion) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi) |
There are several things you need to do to launch examples below:
**At the time of publication of version `0.28.0` there are errors in serialization plugins like
[kotlinx.serialization#1004](https://github.com/Kotlin/kotlinx.serialization/issues/1004). It is possible, that both JVM
and JS version may work improperly in some cases with `kotlinx.serialization` version `1.0.0-RC`**
* Add `mavenCentral()` to your project repositories
* [Maven variant](https://github.com/InsanusMokrassar/TelegramBotAPI/wiki/Including-in-your-project#pomxml)
* Add dependency `implementation "dev.inmo:tgbotapi:$tgbotapi_version"`
* Replace `tgbotapi_version` with exact version (see last one in the table above) or put variable with this name in project
* Alternative variant for maven [here](https://github.com/InsanusMokrassar/TelegramBotAPI/wiki/Including-in-your-project#telegrambotapi)
## What is it?
More including instructions [available here](https://github.com/InsanusMokrassar/TelegramBotAPI/wiki/Including-in-your-project).
Other configuration examples:
It is a complex of libraries for working with `TelegramBotAPI` in type-safe and strict way as much as it possible. In
the list of this complex currently next projects:
* [For multiplatform](https://github.com/InsanusMokrassar/TelegramBotAPI-examples/tree/master/ResenderBot)
* [For JVM](https://github.com/InsanusMokrassar/TelegramBotAPI-examples/blob/master/GetMeBot/build.gradle)
* [TelegramBotAPI Core](tgbotapi.core/README.md) - core of library. In fact it is independent library and can be used alone
without any additional library
* [TelegramBotAPI API Extensions](tgbotapi.extensions.api/README.md) - contains extensions (mostly for
`RequestsExecutor`), which allows to use the core library in more pleasant way
* [TelegramBotAPI Util Extensions](tgbotapi.extensions.utils/README.md) - contains extensions for more comfortable
work with commands, updates and other different things
* [TelegramBotAPI](tgbotapi/README.md) - concentration of all previously mentioned libraries
### Most common example
Most part of some specific solves or unuseful
moments are describing by official [Telegram Bot API](https://core.telegram.org/bots/api).
```kotlin
suspend fun main() {
val bot = telegramBot(TOKEN)
## JavaScript notes
### Versions before `0.28.0`
In case if you are want to use this library inside of browser, you will need additional settings (thanks for help to [Alexander Nozik](https://research.jetbrains.org/researchers/altavir)):
<details>
<summary>Gradle build script help (for versions before 0.28.0)</summary>
```groovy
dependencies {
/* ... */
implementation "com.github.insanusmokrassar:TelegramBotAPI:$tgbot_api_version"
implementation "com.github.insanusmokrassar:TelegramBotAPI-extensions-api:$tgbot_api_version" // optional
implementation "com.github.insanusmokrassar:TelegramBotAPI-extensions-utils:$tgbot_api_version" // optional
/* Block of dependencies for correct building in browser */
implementation(npm("fs"))
implementation(npm("bufferutil"))
implementation(npm("utf-8-validate"))
implementation(npm("abort-controller"))
implementation(npm("text-encoding"))
}
/* ... */
kotlin {
target {
browser {
/* Block for fix of exception in absence of some functionality, https://github.com/ktorio/ktor/issues/1339 */
dceTask {
dceOptions {
keep("ktor-ktor-io.\$\$importsForInline\$\$.ktor-ktor-io.io.ktor.utils.io")
}
}
}
bot.buildBehaviourWithLongPolling {
println(getMe())
onCommand("start") {
reply(it, "Hi:)")
}
}.join()
}
```
</details>
In this example you will see information about this bot at the moment of starting and answer with `Hi:)` every time it
gets message `/start`
## Ok, where should I start?
### Handling only last messages
![Libraries hierarchy](resources/TelegramBotAPI-libraries-hierarchy.svg)
```kotlin
suspend fun main() {
val bot = telegramBot(TOKEN)
In most cases, the most simple way will be to implement [TelegramBotAPI](tgbotapi/README.md) - it contains
all necessary tools for comfort usage of this library. If you want to exclude some libraries, you can implement just
[TelegramBotAPI API Extensions](tgbotapi.extensions.api/README.md),
[TelegramBotAPI Util Extensions](tgbotapi.extensions.utils/README.md) or even
[TelegramBotAPI Core](tgbotapi.core/README.md).
val flowsUpdatesFilter = FlowsUpdatesFilter()
bot.buildBehaviour(flowUpdatesFilter = flowsUpdatesFilter) {
println(getMe())
onCommand("start") {
reply(it, "Hi:)")
}
If you want to dive deeper in the core of library or develop something for it - welcome to learn more from
[TelegramBotAPI Core](tgbotapi.core/README.md) and our [Telegram Chat](https://teleg.one/InMoTelegramBotAPIChat).
Anyway, all libraries are very typical inside of them. Examples:
* In `TelegramBotAPI` common request look like `requestsExecutor.execute(SomeRequest())`
* `tgbotapi.extensions.api` typical syntax look like `requestsExecutor.someRequest()` (in most cases it would be
better to use `bot` name instead of `requestsExecutor`)
* `tgbotapi.extensions.utils` will look like `filter.filterBaseMessageUpdates(chatId).filterExactCommands(Regex("^.*$"))...`
## Build instruction
If you want to build this project or to contribute, there are several recommendations:
### Build
In case if you want to just build project, run next command:
```bash
./gradlew clean build
```
On windows:
```
gradlew.bat clean build
```
### Publishing for work with your version locally
In case, if you want to work in your other projects using your modification (or some state) of this library,
you can use next code:
```bash
./gradlew clean build publishToMavenLocal
```
On windows:
```
gradlew.bat clean build publishToMavenLocal
```
But you must remember, that in this case your local maven repo must be the first one from
your project retrieving libraries:
```groovy
repositories {
mavenLocal() // that must be the first one
jcenter()
mavenCentral()
retrieveAccumulatedUpdates(this).join()
}
}
```
Besides, for your own version you can change variable `library_version` in the file [gradle.properties](./gradle.properties).
The main difference with the previous example is that bot will get only last updates (accumulated before bot launch
and maybe some updates it got after launch)
### Build a little bit more complex behaviour
```kotlin
suspend fun main() {
val bot = telegramBot(TOKEN)
bot.buildBehaviourWithLongPolling {
println(getMe())
val nameReplyMarkup = ReplyKeyboardMarkup(
matrix {
row {
+SimpleKeyboardButton("nope")
}
}
)
onCommand("start") {
val photo = waitPhoto(
SendTextMessage(it.chat.id, "Send me your photo please")
).first()
val name = waitText(
SendTextMessage(
it.chat.id,
"Send me your name or choose \"nope\"",
replyMarkup = nameReplyMarkup
)
).first().text.takeIf { it != "nope" }
sendPhoto(
it.chat,
photo.mediaCollection,
entities = buildEntities {
if (name != null) regular(name) // may be collapsed up to name ?.let(::regular)
}
)
}
}.join()
}
```
### More examples
You may find examples in [this project](https://github.com/InsanusMokrassar/TelegramBotAPI-examples). Besides, you are
always welcome in our [wiki](https://github.com/InsanusMokrassar/TelegramBotAPI/wiki/About-this-project) and
[chat](https://t.me/InMoTelegramBotAPIChat).
+1
View File
@@ -0,0 +1 @@
<mxfile host="drawio-plugin" modified="2021-10-18T09:11:21.231Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36" etag="EXrT7k_IL_J-VBGHE3jp" version="14.7.4" type="embed"><diagram id="52__hkWDA9-3YNXNIhpc" name="Framework structure"><mxGraphModel dx="1022" dy="756" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="1"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="56" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="47" target="55" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="47" value="&lt;h1&gt;&lt;span style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;line-height: 28.8px&quot;&gt;&lt;b style=&quot;font-size: 24px&quot;&gt;tgbotapi.api&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;text-align: left&quot;&gt;Extensions project for make requests more look like in the Telegram Bot API and give opportunity to use it's easier&lt;/span&gt;&lt;/p&gt;" style="text;html=1;align=center;verticalAlign=middle;shadow=0;glass=0;spacing=5;whiteSpace=wrap;fillColor=#2a2a2a;fontColor=#E6E6E6;" parent="1" vertex="1"><mxGeometry y="200" width="320" height="120" as="geometry"/></mxCell><mxCell id="50" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="48" target="47" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="51" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="48" target="49" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="54" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="48" target="52" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="48" value="&lt;p style=&quot;line-height: 140%&quot;&gt;&lt;/p&gt;&lt;h1&gt;&lt;span style=&quot;font-size: 24px&quot;&gt;&lt;b&gt;tgbotapi.core&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12px ; font-weight: normal&quot;&gt;Root project with API. It is not recommended to use its requests directly and better to use at least tgbotapi.extensions.api&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;" style="text;html=1;align=center;verticalAlign=middle;shadow=0;glass=0;spacing=5;whiteSpace=wrap;fillColor=#2a2a2a;fontColor=#E6E6E6;" parent="1" vertex="1"><mxGeometry x="240" y="40" width="200" height="120" as="geometry"/></mxCell><mxCell id="53" style="edgeStyle=orthogonalEdgeStyle;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" parent="1" source="49" target="52" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="0RoW5gwY-VOkkhbN-aKC-60" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="49" target="55" edge="1"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="330" y="260"/></Array></mxGeometry></mxCell><mxCell id="49" value="&lt;h1&gt;&lt;span style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;line-height: 28.8px&quot;&gt;&lt;b style=&quot;font-size: 24px&quot;&gt;tgbotapi.utils&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;Extensions project with utils things which will make easier different operations&lt;br&gt;&lt;/p&gt;" style="text;html=1;align=center;verticalAlign=middle;shadow=0;glass=0;spacing=5;whiteSpace=wrap;fillColor=#2a2a2a;fontColor=#E6E6E6;" parent="1" vertex="1"><mxGeometry x="360" y="200" width="320" height="120" as="geometry"/></mxCell><mxCell id="0RoW5gwY-VOkkhbN-aKC-59" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="52" target="0RoW5gwY-VOkkhbN-aKC-58" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="0RoW5gwY-VOkkhbN-aKC-62" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.75;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" parent="1" source="52" target="55" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="52" value="&lt;h1 style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;font-size: 24px&quot;&gt;&lt;b&gt;tgbotapi.behaviour_builder&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12px ; font-weight: 400&quot;&gt;Extension project for building bot behaviour via special DSL&lt;/span&gt;&lt;/p&gt;" style="text;html=1;align=center;verticalAlign=middle;shadow=0;glass=0;spacing=5;whiteSpace=wrap;fillColor=#2a2a2a;fontColor=#E6E6E6;" parent="1" vertex="1"><mxGeomeLine truncated
-125
View File
@@ -1,125 +0,0 @@
<?xml version="1.0"?>
<minder version="1.11.1">
<theme name="default" label="Default" index="-1"/>
<styles>
<style level="0" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="1" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="2" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="3" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="4" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="5" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="6" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="7" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="8" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="9" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<style level="10" isset="true" branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="200" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true" connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
</styles>
<drawarea x="-320.56697591145837" y="-10.028254191080691" scale="0.75"/>
<images/>
<nodes>
<node id="0" posx="748.88964843749955" posy="119.42341613769531" width="472" height="168" side="top" fold="false" treesize="603" layout="Downwards" group="false">
<style branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="439" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true"/>
<nodename posx="764.88964843749955" posy="135.42341613769531" maxwidth="488.96484375">
<text data="tgbotapi.core&#10;&#10;Root project with API. It is not recommended to use its requests directly and better to use at least tgbotapi.extensions.api"/>
</nodename>
<nodenote></nodenote>
<nodes>
<node id="1" posx="781.88964843749955" posy="387.42341613769531" width="406" height="145" side="bottom" fold="false" treesize="603" color="#68b723" colorroot="true" layout="Downwards" group="false">
<style branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="none" nodewidth="394" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true"/>
<nodename posx="797.88964843749955" posy="403.42341613769531" maxwidth="419.451171875">
<text data="TelegramBotAPI extensions&#10;&#10;Family of projects which are fully based on TelegramBotAPI and extend its functionality"/>
</nodename>
<nodenote></nodenote>
<nodes>
<node id="2" posx="683.38964843749955" posy="632.42341613769531" width="296" height="191" side="bottom" fold="false" treesize="296" color="#68b723" colorroot="true" layout="Downwards" group="false">
<style branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="203" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true"/>
<nodename posx="699.38964843749955" posy="648.42341613769531" maxwidth="295.90315755208337">
<text data="tgbotapi.extensions.api&#10;&#10;Extensions project for make requests more look like in the Telegram Bot API and give opportunity to use it's easier"/>
</nodename>
<nodenote></nodenote>
</node>
<node id="3" posx="979.38964843749955" posy="632.42341613769531" width="307" height="168" side="bottom" fold="false" treesize="307" color="#68b723" colorroot="true" layout="Downwards" group="false">
<style branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="286" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true"/>
<nodename posx="995.38964843749955" posy="648.42341613769531" maxwidth="299.252197265625">
<text data="tgbotapi.extensions.utils&#10;&#10;Extensions project with utils things which will make easier different operations"/>
</nodename>
<nodenote></nodenote>
</node>
</nodes>
</node>
</nodes>
</node>
<node id="4" posx="815.52319335937455" posy="948.04447937011719" width="329" height="213" side="top" fold="false" treesize="329" layout="Downwards" group="false">
<style branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="388" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true"/>
<nodename posx="831.52319335937455" posy="964.04447937011719" maxwidth="394.3671875">
<text data="tgbotapi&#10;&#10;Here included all available TelegramBotAPI libraries:&#13;&#10;&#13;&#10;* tgbotapi.core&#13;&#10;* tgbotapi.extensions.api&#13;&#10;* tgbotapi.extensions.utils">
<color>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="67" end="68" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="84" end="85" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
<range start="111" end="112" extra="rgb(255,0,0)"/>
</color>
</text>
</nodename>
<nodenote></nodenote>
</node>
</nodes>
<groups/>
<connections>
<connection from_id="2" to_id="4" drag_x="905.70642089843705" drag_y="891.23394775390625" color="#777777">
<style connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<title></title>
<note></note>
</connection>
<connection from_id="3" to_id="4" drag_x="1056.456420898437" drag_y="885.48394775390625" color="#777777">
<style connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<title></title>
<note></note>
</connection>
</connections>
<stickers/>
</minder>
-20
View File
@@ -1,20 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="104" height="20">
<linearGradient id="b" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<clipPath id="a">
<rect width="104" height="20" rx="3" fill="#fff"/>
</clipPath>
<g clip-path="url(#a)">
<path fill="#555" d="M0 0h65v20H0z"/>
<path fill="#007ec6" d="M35 0h69v20H35z"/>
<path fill="url(#b)" d="M0 0h104v20H0z"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110">
<text x="175" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">Talk</text>
<text x="175" y="140" transform="scale(.1)">Talk</text>
<text x="690" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">Telegram</text>
<text x="690" y="140" transform="scale(.1)">Telegram</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1018 B

-20
View File
@@ -1,20 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="104" height="20">
<linearGradient id="b" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<clipPath id="a">
<rect width="104" height="20" rx="3" fill="#fff"/>
</clipPath>
<g clip-path="url(#a)">
<path fill="#555" d="M0 0h65v20H0z"/>
<path fill="#007ec6" d="M45 0h69v20H45z"/>
<path fill="url(#b)" d="M0 0h104v20H0z"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110">
<text x="225" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">Open</text>
<text x="225" y="140" transform="scale(.1)">Open</text>
<text x="740" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">KDocs</text>
<text x="740" y="140" transform="scale(.1)">KDocs</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1012 B

-20
View File
@@ -1,20 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="104" height="20">
<linearGradient id="b" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<clipPath id="a">
<rect width="104" height="20" rx="3" fill="#fff"/>
</clipPath>
<g clip-path="url(#a)">
<path fill="#555" d="M0 0h65v20H0z"/>
<path fill="#007ec6" d="M35 0h69v20H35z"/>
<path fill="url(#b)" d="M0 0h104v20H0z"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110">
<text x="175" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">Bot</text>
<text x="175" y="140" transform="scale(.1)">Bot</text>
<text x="690" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">Template</text>
<text x="690" y="140" transform="scale(.1)">Template</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1016 B

+20 -8
View File
@@ -1,22 +1,34 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "com.github.breadmoirai:github-release:$github_release_plugin_version"
classpath libs.kotlin.gradle.plugin
classpath libs.kotlin.serialization.plugin
classpath libs.kotlin.dokka.plugin
classpath libs.github.release.plugin
}
}
plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" apply false
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" apply false
// temporal crutch until legacy tests will be stabled or legacy target will be removed
allprojects {
repositories {
mavenLocal()
mavenCentral()
google()
}
if (it != rootProject.findProject("docs")) {
tasks.whenTaskAdded { task ->
if(task.name == "jsLegacyBrowserTest" || task.name == "jsLegacyNodeTest") {
task.enabled = false
}
}
}
}
apply from: "./extensions.gradle"
private String getCurrentVersionChangelog() {
OutputStream changelogDataOS = new ByteArrayOutputStream()
@@ -38,7 +50,7 @@ if (new File(projectDir, "secret.gradle").exists()) {
owner "InsanusMokrassar"
repo "TelegramBotAPI"
tagName "$library_version"
tagName "v$library_version"
releaseName "$library_version"
targetCommitish "$library_version"
+21 -36
View File
@@ -1,46 +1,28 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
plugins {
id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
id "org.jetbrains.dokka" version "$dokka_version"
id "org.jetbrains.dokka"
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
project.description = "Full collection of all built-in tgbotapi tools"
apply from: "$mppProjectWithSerializationPresetPath"
kotlin {
jvm()
js(BOTH) {
browser()
nodejs()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
project.parent.subprojects.forEach {
if (it != project) {
api it
}
}
api project(":tgbotapi.core")
api project(":tgbotapi.api")
api project(":tgbotapi.utils")
api project(":tgbotapi.behaviour_builder")
api project(":tgbotapi.behaviour_builder.fsm")
api project(":tgbotapi")
}
}
jsMain {
dependencies {
api project(":tgbotapi.webapps")
}
}
}
@@ -56,7 +38,7 @@ private List<SourceDirectorySet> findSourcesWithName(String... approximateNames)
}.collect { it.kotlin }
}
tasks.dokkaHtml {
Object callback = {
switch (true) {
case project.hasProperty("DOKKA_PATH"):
outputDirectory = project.property("DOKKA_PATH").toString()
@@ -82,11 +64,14 @@ tasks.dokkaHtml {
}
named("jsMain") {
sourceRoots.setFrom(findSourcesWithName("jsMain", "commonMain"))
sourceRoots.setFrom(findSourcesWithName("jsMain"))
}
named("jvmMain") {
sourceRoots.setFrom(findSourcesWithName("jvmMain", "commonMain"))
sourceRoots.setFrom(findSourcesWithName("jvmMain"))
}
}
}
tasks.dokkaGfm(callback)
tasks.dokkaHtml(callback)
-2
View File
@@ -1,3 +1 @@
dokka_version=1.4.20
org.gradle.jvmargs=-Xmx1024m
+8
View File
@@ -0,0 +1,8 @@
allprojects {
ext {
mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization.gradle"
mppJsProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJsProject.gradle"
publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle"
}
}
+1 -14
View File
@@ -5,18 +5,5 @@ kotlin.js.generate.externals=true
kotlin.incremental=true
kotlin.incremental.js=true
kotlin_version=1.4.21
kotlin_coroutines_version=1.4.2
kotlin_serialisation_runtime_version=1.0.1
klock_version=2.0.3
uuid_version=0.2.3
ktor_version=1.5.0
micro_utils_version=0.4.15
javax_activation_version=1.1.1
library_group=dev.inmo
library_version=0.30.12
github_release_plugin_version=2.2.12
library_version=2.2.0
+59
View File
@@ -0,0 +1,59 @@
[versions]
kotlin = "1.6.21"
kotlin-serialization = "1.3.3"
kotlin-coroutines = "1.6.3"
kotlin-gradle-plugin = "7.0.4"
javax-activation = "1.1.1"
korlibs = "2.7.0"
uuid = "0.4.1"
ktor = "2.0.3"
microutils = "0.11.12"
github-release-plugin = "2.4.1"
[libraries]
kotlin = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlin-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlin-coroutines" }
kotlin-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlin-serialization" }
kotlin-serialization-properties = { module = "org.jetbrains.kotlinx:kotlinx-serialization-properties", version.ref = "kotlin-serialization" }
kotlin-test-common = { module = "org.jetbrains.kotlin:kotlin-test-common", version.ref = "kotlin" }
kotlin-test-annotations-common = { module = "org.jetbrains.kotlin:kotlin-test-annotations-common", version.ref = "kotlin" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
kotlin-test-js = { module = "org.jetbrains.kotlin:kotlin-test-js", version.ref = "kotlin" }
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
ktor-server = { module = "io.ktor:ktor-server", version.ref = "ktor" }
ktor-server-host-common = { module = "io.ktor:ktor-server-host-common", version.ref = "ktor" }
javax-activation = { module = "javax.activation:activation", version.ref = "javax-activation" }
korlibs-klock = { module = "com.soywiz.korlibs.klock:klock", version.ref = "korlibs" }
korlibs-krypto = { module = "com.soywiz.korlibs.krypto:krypto", version.ref = "korlibs" }
uuid = { module = "com.benasher44:uuid", version.ref = "uuid" }
microutils-coroutines = { module = "dev.inmo:micro_utils.coroutines", version.ref = "microutils" }
microutils-serialization-base64 = { module = "dev.inmo:micro_utils.serialization.base64", version.ref = "microutils" }
microutils-serialization-encapsulator = { module = "dev.inmo:micro_utils.serialization.encapsulator", version.ref = "microutils" }
microutils-serialization-typedSerializer = { module = "dev.inmo:micro_utils.serialization.typed_serializer", version.ref = "microutils" }
microutils-languageCodes = { module = "dev.inmo:micro_utils.language_codes", version.ref = "microutils" }
microutils-ktor-common = { module = "dev.inmo:micro_utils.ktor.common", version.ref = "microutils" }
microutils-fsm-common = { module = "dev.inmo:micro_utils.fsm.common", version.ref = "microutils" }
# buildscript classpaths
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-serialization-plugin = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
kotlin-dokka-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "kotlin" }
github-release-plugin = { module = "com.github.breadmoirai:github-release", version.ref = "github-release-plugin" }
[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
+1 -1
View File
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
+32
View File
@@ -0,0 +1,32 @@
project.version = "$version"
project.group = "$group"
apply from: "$publishGradlePath"
kotlin {
js (IR) {
browser()
nodejs()
}
sourceSets {
commonMain {
dependencies {
implementation libs.kotlin
api libs.kotlin.serialization
}
}
commonTest {
dependencies {
implementation libs.kotlin.test.common
implementation libs.kotlin.test.annotations.common
}
}
jsTest {
dependencies {
implementation libs.kotlin.test.js
implementation libs.kotlin.test.junit
}
}
}
}
+47
View File
@@ -0,0 +1,47 @@
project.version = "$library_version"
project.group = "$library_group"
kotlin {
jvm {
compilations.main {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
js (IR) {
browser()
nodejs()
}
sourceSets {
commonMain {
dependencies {
implementation libs.kotlin
api libs.kotlin.serialization
}
}
commonTest {
dependencies {
implementation libs.kotlin.test.common
implementation libs.kotlin.test.annotations.common
}
}
jvmTest {
dependencies {
implementation libs.kotlin.test.junit
}
}
jsTest {
dependencies {
implementation libs.kotlin.test.js
implementation libs.kotlin.test.junit
}
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
+79
View File
@@ -0,0 +1,79 @@
apply plugin: 'maven-publish'
task javadocsJar(type: Jar) {
classifier = 'javadoc'
}
publishing {
publications.all {
artifact javadocsJar
pom {
description = "${project.description}"
name = "${project.name}"
url = "https://insanusmokrassar.github.io/TelegramBotAPI/TelegramBotAPI"
scm {
developerConnection = "scm:git:[fetch=]https://github.com/insanusmokrassar/TelegramBotAPI.git[push=]https://github.com/insanusmokrassar/TelegramBotAPI.git"
url = "https://github.com/insanusmokrassar/TelegramBotAPI.git"
}
developers {
developer {
id = "InsanusMokrassar"
name = "Ovsiannikov Aleksei"
email = "ovsyannikov.alexey95@gmail.com"
}
}
licenses {
license {
name = "Apache Software License 2.0"
url = "https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/LICENSE"
}
}
}
repositories {
if ((project.hasProperty('GITHUBPACKAGES_USER') || System.getenv('GITHUBPACKAGES_USER') != null) && (project.hasProperty('GITHUBPACKAGES_PASSWORD') || System.getenv('GITHUBPACKAGES_PASSWORD') != null)) {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/InsanusMokrassar/TelegramBotAPI")
credentials {
username = project.hasProperty('GITHUBPACKAGES_USER') ? project.property('GITHUBPACKAGES_USER') : System.getenv('GITHUBPACKAGES_USER')
password = project.hasProperty('GITHUBPACKAGES_PASSWORD') ? project.property('GITHUBPACKAGES_PASSWORD') : System.getenv('GITHUBPACKAGES_PASSWORD')
}
}
}
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.hasProperty('SONATYPE_USER') ? project.property('SONATYPE_USER') : System.getenv('SONATYPE_USER')
password = project.hasProperty('SONATYPE_PASSWORD') ? project.property('SONATYPE_PASSWORD') : System.getenv('SONATYPE_PASSWORD')
}
}
}
}
}
}
if (project.hasProperty("signing.gnupg.keyName")) {
apply plugin: 'signing'
signing {
useGpgCmd()
sign publishing.publications
}
task signAll {
tasks.withType(Sign).forEach {
dependsOn(it)
}
}
}
+1
View File
@@ -0,0 +1 @@
{"licenses":[{"id":"Apache-2.0","title":"Apache Software License 2.0","url":"https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/LICENSE"}],"mavenConfig":{"name":"${project.name}","description":"${project.description}","url":"https://insanusmokrassar.github.io/TelegramBotAPI/TelegramBotAPI","vcsUrl":"https://github.com/insanusmokrassar/TelegramBotAPI.git","developers":[{"id":"InsanusMokrassar","name":"Ovsiannikov Aleksei","eMail":"ovsyannikov.alexey95@gmail.com"}],"repositories":[{"name":"GithubPackages","url":"https://maven.pkg.github.com/InsanusMokrassar/TelegramBotAPI"},{"name":"sonatype","url":"https://oss.sonatype.org/service/local/staging/deploy/maven2/"}],"gpgSigning":{"type":"dev.inmo.kmppscriptbuilder.core.models.GpgSigning.Optional"}}}
+97
View File
@@ -0,0 +1,97 @@
# Exceptions handling
Unfortunatelly, exceptions handling in this library is a bit difficult in some places, but that have at least two reasons: flexibility and usability.
## "In place" handling
In case you know, where exceptions are happening, you may use several tools for exceptions catching:
* Catching with result
* Catching with callback
### Catching with result
If you prefer to receive `Result` objects instead of some weird callbacks, you may use the next syntax:
```kotlin
safelyWithResult {
// do something
}.onSuccess { // will be called if everything is right
// handle success
}.onFailure { // will be called if something went wrong
// handle error
it.printStackTrace()
}.getOrThrow() // will return value or throw exception
```
### Catching with callback
Also there is more simple (in some cases) way to handle exceptions with callbacks:
```kotlin
safely(
{
// handle error
it.printStackTrace()
null // return value
}
) {
// do something
}
```
### Bonus: different types of handling
There are two types of handling:
* Just safely - when you are using something to obviously retrieve value or throw exception. When handling callback has been skipped, it will throw exception by default. For example:
```kotlin
safely(
{
it.printStackTrace()
"error"
}
) {
error("Hi :)") // emulate exception throwing
"ok"
} // result will be with type String
```
* Safely without exceptions - almost the same as `safely`, but this type by default allow to return nullable value (when exception was thrown) instead of just throwing (as with `safely`):
```kotlin
safelyWithouExceptions {
// do something
} // will returns nullable result type
```
## Global exceptions handling
The most simple way to configure exceptions handling is to change `CoroutineContext` when you are creating your `CoroutineScope` for bot processing:
```kotlin
val bot = telegramBot("TOKEN")
bot.buildBehaviour (
scope = scope,
defaultExceptionsHandler = {
it.printStackTrace()
}
) {
// ...
}
```
OR
```kotlin
val bot = telegramBotWithBehaviour (
"TOKEN",
scope = scope,
defaultExceptionsHandler = {
it.printStackTrace()
}
) {
// ...
}
```
Here we have used `ContextSafelyExceptionHandler` class. It will pass default handling of exceptions and will call the block in most cases when something inside of your bot logic has thrown exception.
+144 -811
View File
@@ -1,811 +1,144 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="623pt" height="1061pt" viewBox="0 0 623 1061" version="1.1">
<defs>
<g>
<symbol overflow="visible" id="glyph0-0">
<path style="stroke:none;" d=""/>
</symbol>
<symbol overflow="visible" id="glyph0-1">
<path style="stroke:none;" d="M 5.578125 -12.5 L 5.578125 -10 L 9.34375 -10 L 9.34375 -8.703125 L 5.578125 -8.703125 L 5.578125 -3.375 C 5.578125 -2.988281 5.625 -2.671875 5.71875 -2.421875 C 5.820312 -2.179688 5.957031 -1.984375 6.125 -1.828125 C 6.289062 -1.679688 6.484375 -1.578125 6.703125 -1.515625 C 6.929688 -1.460938 7.171875 -1.4375 7.421875 -1.4375 C 7.597656 -1.4375 7.785156 -1.445312 7.984375 -1.46875 C 8.179688 -1.488281 8.367188 -1.515625 8.546875 -1.546875 C 8.734375 -1.578125 8.90625 -1.609375 9.0625 -1.640625 C 9.226562 -1.679688 9.363281 -1.710938 9.46875 -1.734375 L 9.703125 -0.53125 C 9.566406 -0.445312 9.394531 -0.375 9.1875 -0.3125 C 8.988281 -0.25 8.769531 -0.191406 8.53125 -0.140625 C 8.300781 -0.0976562 8.050781 -0.0625 7.78125 -0.03125 C 7.519531 -0.0078125 7.257812 0 7 0 C 6.5625 0 6.148438 -0.0625 5.765625 -0.1875 C 5.390625 -0.3125 5.0625 -0.507812 4.78125 -0.78125 C 4.5 -1.050781 4.28125 -1.398438 4.125 -1.828125 C 3.96875 -2.253906 3.890625 -2.769531 3.890625 -3.375 L 3.890625 -8.703125 L 1.296875 -8.703125 L 1.296875 -10 L 3.890625 -10 L 3.890625 -12.5 Z M 5.578125 -12.5 "/>
</symbol>
<symbol overflow="visible" id="glyph0-2">
<path style="stroke:none;" d="M 1.28125 -5.078125 C 1.28125 -5.804688 1.367188 -6.46875 1.546875 -7.0625 C 1.722656 -7.664062 1.976562 -8.179688 2.3125 -8.609375 C 2.65625 -9.046875 3.070312 -9.382812 3.5625 -9.625 C 4.050781 -9.875 4.601562 -10 5.21875 -10 C 5.820312 -10 6.351562 -9.890625 6.8125 -9.671875 C 7.269531 -9.460938 7.660156 -9.15625 7.984375 -8.75 L 8.0625 -10 L 9.59375 -10 L 9.59375 -0.15625 C 9.59375 0.5 9.488281 1.082031 9.28125 1.59375 C 9.082031 2.113281 8.800781 2.550781 8.4375 2.90625 C 8.070312 3.269531 7.632812 3.539062 7.125 3.71875 C 6.613281 3.90625 6.046875 4 5.421875 4 C 5.171875 4 4.878906 3.96875 4.546875 3.90625 C 4.222656 3.851562 3.890625 3.757812 3.546875 3.625 C 3.210938 3.488281 2.890625 3.3125 2.578125 3.09375 C 2.265625 2.875 1.992188 2.597656 1.765625 2.265625 L 2.640625 1.125 C 2.847656 1.40625 3.0625 1.640625 3.28125 1.828125 C 3.5 2.023438 3.71875 2.179688 3.9375 2.296875 C 4.164062 2.421875 4.390625 2.507812 4.609375 2.5625 C 4.835938 2.613281 5.066406 2.640625 5.296875 2.640625 C 5.703125 2.640625 6.0625 2.578125 6.375 2.453125 C 6.695312 2.328125 6.972656 2.140625 7.203125 1.890625 C 7.429688 1.648438 7.601562 1.351562 7.71875 1 C 7.84375 0.644531 7.90625 0.234375 7.90625 -0.234375 L 7.90625 -1.15625 C 7.582031 -0.78125 7.195312 -0.492188 6.75 -0.296875 C 6.300781 -0.0976562 5.785156 0 5.203125 0 C 4.597656 0 4.050781 -0.125 3.5625 -0.375 C 3.070312 -0.625 2.660156 -0.96875 2.328125 -1.40625 C 1.992188 -1.851562 1.734375 -2.375 1.546875 -2.96875 C 1.367188 -3.5625 1.28125 -4.203125 1.28125 -4.890625 Z M 2.96875 -4.890625 C 2.96875 -4.421875 3.015625 -3.976562 3.109375 -3.5625 C 3.210938 -3.144531 3.367188 -2.773438 3.578125 -2.453125 C 3.796875 -2.140625 4.070312 -1.890625 4.40625 -1.703125 C 4.75 -1.523438 5.148438 -1.4375 5.609375 -1.4375 C 5.898438 -1.4375 6.160156 -1.46875 6.390625 -1.53125 C 6.628906 -1.601562 6.84375 -1.695312 7.03125 -1.8125 C 7.21875 -1.9375 7.382812 -2.082031 7.53125 -2.25 C 7.675781 -2.425781 7.800781 -2.617188 7.90625 -2.828125 L 7.90625 -7.21875 C 7.800781 -7.414062 7.675781 -7.597656 7.53125 -7.765625 C 7.382812 -7.929688 7.21875 -8.070312 7.03125 -8.1875 C 6.84375 -8.300781 6.628906 -8.394531 6.390625 -8.46875 C 6.160156 -8.539062 5.910156 -8.578125 5.640625 -8.578125 C 5.160156 -8.578125 4.75 -8.484375 4.40625 -8.296875 C 4.070312 -8.109375 3.796875 -7.851562 3.578125 -7.53125 C 3.367188 -7.207031 3.210938 -6.832031 3.109375 -6.40625 C 3.015625 -5.988281 2.96875 -5.546875 2.96875 -5.078125 Z M 2.96875 -4.890625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-3">
<path style="stroke:none;" d="M 9.953125 -4.890625 C 9.953125 -4.203125 9.863281 -3.5625 9.6875 -2.96875 C 9.519531 -2.375 9.269531 -1.851562 8.9375 -1.40625 C 8.613281 -0.96875 8.207031 -0.625 7.71875 -0.375 C 7.238281 -0.125 6.6875 0 6.0625 0 C 5.425781 0 4.875 -0.113281 4.40625 -0.34375 C 3.945312 -0.570312 3.554688 -0.894531 3.234375 -1.3125 L 3.140625 0 L 1.59375 0 L 1.59375 -14 L 3.28125 -14 L 3.28125 -8.765625 C 3.601562 -9.160156 3.992188 -9.460938 4.453125 -9.671875 C 4.910156 -9.890625 5.441406 -10 6.046875 -10 C 6.679688 -10 7.238281 -9.875 7.71875 -9.625 C 8.207031 -9.382812 8.613281 -9.046875 8.9375 -8.609375 C 9.269531 -8.179688 9.519531 -7.664062 9.6875 -7.0625 C 9.863281 -6.46875 9.953125 -5.804688 9.953125 -5.078125 Z M 8.265625 -5.078125 C 8.265625 -5.546875 8.21875 -5.988281 8.125 -6.40625 C 8.03125 -6.832031 7.878906 -7.207031 7.671875 -7.53125 C 7.460938 -7.851562 7.191406 -8.109375 6.859375 -8.296875 C 6.523438 -8.484375 6.113281 -8.578125 5.625 -8.578125 C 5.332031 -8.578125 5.0625 -8.535156 4.8125 -8.453125 C 4.570312 -8.378906 4.359375 -8.273438 4.171875 -8.140625 C 3.984375 -8.015625 3.8125 -7.863281 3.65625 -7.6875 C 3.507812 -7.507812 3.382812 -7.316406 3.28125 -7.109375 L 3.28125 -2.921875 C 3.394531 -2.703125 3.523438 -2.503906 3.671875 -2.328125 C 3.816406 -2.148438 3.984375 -1.992188 4.171875 -1.859375 C 4.367188 -1.722656 4.585938 -1.617188 4.828125 -1.546875 C 5.078125 -1.472656 5.347656 -1.4375 5.640625 -1.4375 C 6.109375 -1.4375 6.503906 -1.523438 6.828125 -1.703125 C 7.160156 -1.890625 7.429688 -2.140625 7.640625 -2.453125 C 7.847656 -2.773438 8.003906 -3.144531 8.109375 -3.5625 C 8.210938 -3.976562 8.265625 -4.421875 8.265625 -4.890625 Z M 8.265625 -5.078125 "/>
</symbol>
<symbol overflow="visible" id="glyph0-4">
<path style="stroke:none;" d="M 1.109375 -5.09375 C 1.109375 -5.789062 1.210938 -6.4375 1.421875 -7.03125 C 1.628906 -7.625 1.925781 -8.140625 2.3125 -8.578125 C 2.695312 -9.023438 3.164062 -9.375 3.71875 -9.625 C 4.269531 -9.875 4.894531 -10 5.59375 -10 C 6.289062 -10 6.914062 -9.875 7.46875 -9.625 C 8.03125 -9.375 8.503906 -9.023438 8.890625 -8.578125 C 9.273438 -8.140625 9.566406 -7.625 9.765625 -7.03125 C 9.972656 -6.4375 10.078125 -5.789062 10.078125 -5.09375 L 10.078125 -4.890625 C 10.078125 -4.191406 9.972656 -3.546875 9.765625 -2.953125 C 9.566406 -2.367188 9.273438 -1.851562 8.890625 -1.40625 C 8.503906 -0.96875 8.03125 -0.625 7.46875 -0.375 C 6.914062 -0.125 6.296875 0 5.609375 0 C 4.910156 0 4.28125 -0.125 3.71875 -0.375 C 3.164062 -0.625 2.695312 -0.96875 2.3125 -1.40625 C 1.925781 -1.851562 1.628906 -2.367188 1.421875 -2.953125 C 1.210938 -3.546875 1.109375 -4.191406 1.109375 -4.890625 Z M 2.796875 -4.890625 C 2.796875 -4.421875 2.851562 -3.972656 2.96875 -3.546875 C 3.082031 -3.117188 3.253906 -2.742188 3.484375 -2.421875 C 3.722656 -2.097656 4.019531 -1.84375 4.375 -1.65625 C 4.726562 -1.46875 5.140625 -1.375 5.609375 -1.375 C 6.066406 -1.375 6.46875 -1.46875 6.8125 -1.65625 C 7.164062 -1.84375 7.457031 -2.097656 7.6875 -2.421875 C 7.925781 -2.742188 8.101562 -3.117188 8.21875 -3.546875 C 8.332031 -3.972656 8.390625 -4.421875 8.390625 -4.890625 L 8.390625 -5.09375 C 8.390625 -5.5625 8.332031 -6.007812 8.21875 -6.4375 C 8.101562 -6.863281 7.925781 -7.238281 7.6875 -7.5625 C 7.457031 -7.882812 7.164062 -8.140625 6.8125 -8.328125 C 6.46875 -8.523438 6.0625 -8.625 5.59375 -8.625 C 5.125 -8.625 4.710938 -8.523438 4.359375 -8.328125 C 4.015625 -8.140625 3.722656 -7.882812 3.484375 -7.5625 C 3.253906 -7.238281 3.082031 -6.863281 2.96875 -6.4375 C 2.851562 -6.007812 2.796875 -5.5625 2.796875 -5.09375 Z M 2.796875 -4.890625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-5">
<path style="stroke:none;" d="M 8.0625 -0.1875 C 8 -0.3125 7.945312 -0.46875 7.90625 -0.65625 C 7.863281 -0.851562 7.835938 -1.054688 7.828125 -1.265625 C 7.648438 -1.085938 7.457031 -0.921875 7.25 -0.765625 C 7.039062 -0.617188 6.8125 -0.488281 6.5625 -0.375 C 6.3125 -0.257812 6.039062 -0.164062 5.75 -0.09375 C 5.46875 -0.03125 5.164062 0 4.84375 0 C 4.320312 0 3.847656 -0.0703125 3.421875 -0.21875 C 3.003906 -0.363281 2.644531 -0.5625 2.34375 -0.8125 C 2.050781 -1.070312 1.820312 -1.375 1.65625 -1.71875 C 1.5 -2.070312 1.421875 -2.445312 1.421875 -2.84375 C 1.421875 -3.375 1.523438 -3.835938 1.734375 -4.234375 C 1.953125 -4.628906 2.257812 -4.957031 2.65625 -5.21875 C 3.050781 -5.476562 3.523438 -5.671875 4.078125 -5.796875 C 4.640625 -5.929688 5.265625 -6 5.953125 -6 L 7.796875 -6 L 7.796875 -6.75 C 7.796875 -7.050781 7.738281 -7.316406 7.625 -7.546875 C 7.519531 -7.773438 7.363281 -7.96875 7.15625 -8.125 C 6.957031 -8.289062 6.710938 -8.414062 6.421875 -8.5 C 6.140625 -8.59375 5.820312 -8.640625 5.46875 -8.640625 C 5.125 -8.640625 4.820312 -8.597656 4.5625 -8.515625 C 4.300781 -8.429688 4.078125 -8.320312 3.890625 -8.1875 C 3.710938 -8.0625 3.570312 -7.90625 3.46875 -7.71875 C 3.363281 -7.53125 3.3125 -7.332031 3.3125 -7.125 L 1.625 -7.125 C 1.625 -7.476562 1.710938 -7.828125 1.890625 -8.171875 C 2.078125 -8.515625 2.335938 -8.816406 2.671875 -9.078125 C 3.015625 -9.347656 3.425781 -9.566406 3.90625 -9.734375 C 4.382812 -9.910156 4.929688 -10 5.546875 -10 C 6.109375 -10 6.628906 -9.929688 7.109375 -9.796875 C 7.585938 -9.660156 8 -9.457031 8.34375 -9.1875 C 8.695312 -8.925781 8.972656 -8.59375 9.171875 -8.1875 C 9.378906 -7.78125 9.484375 -7.304688 9.484375 -6.765625 L 9.484375 -2.296875 C 9.484375 -1.972656 9.515625 -1.628906 9.578125 -1.265625 C 9.640625 -0.910156 9.722656 -0.597656 9.828125 -0.328125 L 9.828125 -0.1875 Z M 5.09375 -1.46875 C 5.414062 -1.46875 5.71875 -1.503906 6 -1.578125 C 6.289062 -1.660156 6.550781 -1.769531 6.78125 -1.90625 C 7.019531 -2.039062 7.222656 -2.191406 7.390625 -2.359375 C 7.566406 -2.535156 7.703125 -2.71875 7.796875 -2.90625 L 7.796875 -4.8125 L 6.234375 -4.8125 C 5.242188 -4.8125 4.472656 -4.671875 3.921875 -4.390625 C 3.378906 -4.109375 3.109375 -3.671875 3.109375 -3.078125 C 3.109375 -2.847656 3.148438 -2.632812 3.234375 -2.4375 C 3.316406 -2.238281 3.4375 -2.066406 3.59375 -1.921875 C 3.757812 -1.773438 3.96875 -1.660156 4.21875 -1.578125 C 4.46875 -1.503906 4.757812 -1.46875 5.09375 -1.46875 Z M 5.09375 -1.46875 "/>
</symbol>
<symbol overflow="visible" id="glyph0-6">
<path style="stroke:none;" d="M 9.90625 -4.890625 C 9.90625 -4.203125 9.820312 -3.5625 9.65625 -2.96875 C 9.488281 -2.375 9.238281 -1.851562 8.90625 -1.40625 C 8.582031 -0.96875 8.175781 -0.625 7.6875 -0.375 C 7.207031 -0.125 6.65625 0 6.03125 0 C 5.4375 0 4.90625 -0.0976562 4.4375 -0.296875 C 3.976562 -0.492188 3.585938 -0.769531 3.265625 -1.125 L 3.265625 4 L 1.578125 4 L 1.578125 -10 L 3.125 -10 L 3.203125 -8.9375 C 3.523438 -9.28125 3.921875 -9.539062 4.390625 -9.71875 C 4.859375 -9.90625 5.398438 -10 6.015625 -10 C 6.640625 -10 7.195312 -9.875 7.6875 -9.625 C 8.175781 -9.382812 8.582031 -9.046875 8.90625 -8.609375 C 9.238281 -8.179688 9.488281 -7.664062 9.65625 -7.0625 C 9.820312 -6.46875 9.90625 -5.804688 9.90625 -5.078125 Z M 8.21875 -5.171875 C 8.21875 -5.648438 8.164062 -6.101562 8.0625 -6.53125 C 7.957031 -6.96875 7.789062 -7.351562 7.5625 -7.6875 C 7.34375 -8.019531 7.0625 -8.28125 6.71875 -8.46875 C 6.382812 -8.664062 5.976562 -8.765625 5.5 -8.765625 C 4.96875 -8.765625 4.515625 -8.640625 4.140625 -8.390625 C 3.773438 -8.140625 3.484375 -7.816406 3.265625 -7.421875 L 3.265625 -2.6875 C 3.484375 -2.300781 3.773438 -1.984375 4.140625 -1.734375 C 4.503906 -1.492188 4.96875 -1.375 5.53125 -1.375 C 6 -1.375 6.398438 -1.472656 6.734375 -1.671875 C 7.078125 -1.867188 7.359375 -2.132812 7.578125 -2.46875 C 7.796875 -2.800781 7.957031 -3.179688 8.0625 -3.609375 C 8.164062 -4.046875 8.21875 -4.503906 8.21875 -4.984375 Z M 8.21875 -5.171875 "/>
</symbol>
<symbol overflow="visible" id="glyph0-7">
<path style="stroke:none;" d="M 1.84375 -10 L 6.890625 -10 L 6.890625 -1.453125 L 10.109375 -1.453125 L 10.109375 0 L 1.84375 0 L 1.84375 -1.453125 L 5.203125 -1.453125 L 5.203125 -8.546875 L 1.84375 -8.546875 Z M 4.984375 -12 C 4.984375 -12.28125 5.066406 -12.515625 5.234375 -12.703125 C 5.398438 -12.898438 5.65625 -13 6 -13 C 6.332031 -13 6.582031 -12.898438 6.75 -12.703125 C 6.925781 -12.515625 7.015625 -12.28125 7.015625 -12 C 7.015625 -11.726562 6.925781 -11.5 6.75 -11.3125 C 6.582031 -11.132812 6.332031 -11.046875 6 -11.046875 C 5.65625 -11.046875 5.398438 -11.132812 5.234375 -11.3125 C 5.066406 -11.5 4.984375 -11.726562 4.984375 -12 Z M 4.984375 -12 "/>
</symbol>
<symbol overflow="visible" id="glyph0-8">
<path style="stroke:none;" d="M 4.515625 -1.265625 C 4.515625 -1.441406 4.546875 -1.609375 4.609375 -1.765625 C 4.671875 -1.921875 4.753906 -2.054688 4.859375 -2.171875 C 4.972656 -2.296875 5.109375 -2.390625 5.265625 -2.453125 C 5.429688 -2.523438 5.625 -2.5625 5.84375 -2.5625 C 6.0625 -2.5625 6.253906 -2.523438 6.421875 -2.453125 C 6.585938 -2.390625 6.726562 -2.296875 6.84375 -2.171875 C 6.957031 -2.054688 7.039062 -1.921875 7.09375 -1.765625 C 7.15625 -1.609375 7.1875 -1.441406 7.1875 -1.265625 C 7.1875 -1.085938 7.15625 -0.921875 7.09375 -0.765625 C 7.039062 -0.609375 6.957031 -0.472656 6.84375 -0.359375 C 6.726562 -0.242188 6.585938 -0.15625 6.421875 -0.09375 C 6.253906 -0.03125 6.0625 0 5.84375 0 C 5.625 0 5.429688 -0.03125 5.265625 -0.09375 C 5.109375 -0.15625 4.972656 -0.242188 4.859375 -0.359375 C 4.753906 -0.472656 4.671875 -0.609375 4.609375 -0.765625 C 4.546875 -0.921875 4.515625 -1.085938 4.515625 -1.265625 Z M 4.515625 -1.265625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-9">
<path style="stroke:none;" d="M 5.9375 0 C 5.25 0 4.613281 -0.113281 4.03125 -0.34375 C 3.445312 -0.582031 2.945312 -0.910156 2.53125 -1.328125 C 2.125 -1.742188 1.804688 -2.238281 1.578125 -2.8125 C 1.347656 -3.382812 1.234375 -4 1.234375 -4.65625 L 1.234375 -5.046875 C 1.234375 -5.828125 1.359375 -6.519531 1.609375 -7.125 C 1.867188 -7.738281 2.207031 -8.257812 2.625 -8.6875 C 3.050781 -9.113281 3.53125 -9.4375 4.0625 -9.65625 C 4.601562 -9.882812 5.15625 -10 5.71875 -10 C 6.4375 -10 7.0625 -9.882812 7.59375 -9.65625 C 8.125 -9.425781 8.566406 -9.101562 8.921875 -8.6875 C 9.273438 -8.28125 9.535156 -7.796875 9.703125 -7.234375 C 9.878906 -6.679688 9.96875 -6.082031 9.96875 -5.4375 L 9.96875 -4.71875 L 2.921875 -4.71875 C 2.929688 -4.257812 3.015625 -3.828125 3.171875 -3.421875 C 3.328125 -3.015625 3.539062 -2.660156 3.8125 -2.359375 C 4.082031 -2.054688 4.40625 -1.816406 4.78125 -1.640625 C 5.164062 -1.460938 5.582031 -1.375 6.03125 -1.375 C 6.632812 -1.375 7.171875 -1.5 7.640625 -1.75 C 8.109375 -2.007812 8.5 -2.34375 8.8125 -2.75 L 9.84375 -1.921875 C 9.675781 -1.671875 9.46875 -1.425781 9.21875 -1.1875 C 8.976562 -0.957031 8.695312 -0.753906 8.375 -0.578125 C 8.050781 -0.410156 7.6875 -0.269531 7.28125 -0.15625 C 6.875 -0.0507812 6.425781 0 5.9375 0 Z M 5.71875 -8.625 C 5.382812 -8.625 5.0625 -8.566406 4.75 -8.453125 C 4.445312 -8.335938 4.175781 -8.171875 3.9375 -7.953125 C 3.695312 -7.742188 3.492188 -7.484375 3.328125 -7.171875 C 3.160156 -6.859375 3.039062 -6.5 2.96875 -6.09375 L 8.28125 -6.09375 L 8.28125 -6.203125 C 8.257812 -6.492188 8.195312 -6.785156 8.09375 -7.078125 C 7.988281 -7.367188 7.832031 -7.628906 7.625 -7.859375 C 7.414062 -8.085938 7.15625 -8.269531 6.84375 -8.40625 C 6.53125 -8.550781 6.15625 -8.625 5.71875 -8.625 Z M 5.71875 -8.625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-10">
<path style="stroke:none;" d="M 5.65625 -6.375 L 8.296875 -10 L 10.28125 -10 L 6.59375 -5.0625 L 10.375 0 L 8.421875 0 L 5.703125 -3.8125 L 2.96875 0 L 1 0 L 4.78125 -5.0625 L 1.109375 -10 L 3.046875 -10 Z M 5.65625 -6.375 "/>
</symbol>
<symbol overflow="visible" id="glyph0-11">
<path style="stroke:none;" d="M 3.09375 -10 L 3.21875 -8.390625 C 3.570312 -8.898438 4.007812 -9.296875 4.53125 -9.578125 C 5.0625 -9.859375 5.648438 -10 6.296875 -10 C 6.804688 -10 7.269531 -9.925781 7.6875 -9.78125 C 8.113281 -9.632812 8.472656 -9.40625 8.765625 -9.09375 C 9.066406 -8.789062 9.296875 -8.398438 9.453125 -7.921875 C 9.617188 -7.453125 9.703125 -6.890625 9.703125 -6.234375 L 9.703125 0 L 8.015625 0 L 8.015625 -6.21875 C 8.015625 -6.644531 7.96875 -7.007812 7.875 -7.3125 C 7.78125 -7.625 7.632812 -7.875 7.4375 -8.0625 C 7.25 -8.25 7.015625 -8.382812 6.734375 -8.46875 C 6.460938 -8.550781 6.148438 -8.59375 5.796875 -8.59375 C 5.222656 -8.59375 4.722656 -8.453125 4.296875 -8.171875 C 3.867188 -7.890625 3.523438 -7.519531 3.265625 -7.0625 L 3.265625 0 L 1.59375 0 L 1.59375 -10 Z M 3.09375 -10 "/>
</symbol>
<symbol overflow="visible" id="glyph0-12">
<path style="stroke:none;" d="M 8.140625 -2.765625 C 8.140625 -2.960938 8.097656 -3.140625 8.015625 -3.296875 C 7.941406 -3.453125 7.8125 -3.59375 7.625 -3.71875 C 7.4375 -3.84375 7.1875 -3.960938 6.875 -4.078125 C 6.5625 -4.191406 6.175781 -4.289062 5.71875 -4.375 C 5.15625 -4.488281 4.640625 -4.625 4.171875 -4.78125 C 3.703125 -4.945312 3.300781 -5.140625 2.96875 -5.359375 C 2.644531 -5.578125 2.390625 -5.835938 2.203125 -6.140625 C 2.023438 -6.441406 1.9375 -6.789062 1.9375 -7.1875 C 1.9375 -7.570312 2.03125 -7.9375 2.21875 -8.28125 C 2.40625 -8.625 2.664062 -8.921875 3 -9.171875 C 3.34375 -9.429688 3.75 -9.632812 4.21875 -9.78125 C 4.695312 -9.925781 5.21875 -10 5.78125 -10 C 6.382812 -10 6.929688 -9.921875 7.421875 -9.765625 C 7.910156 -9.609375 8.320312 -9.390625 8.65625 -9.109375 C 9 -8.835938 9.265625 -8.519531 9.453125 -8.15625 C 9.640625 -7.789062 9.734375 -7.398438 9.734375 -6.984375 L 8.046875 -6.984375 C 8.046875 -7.179688 7.988281 -7.378906 7.875 -7.578125 C 7.769531 -7.773438 7.617188 -7.953125 7.421875 -8.109375 C 7.222656 -8.265625 6.984375 -8.390625 6.703125 -8.484375 C 6.429688 -8.578125 6.125 -8.625 5.78125 -8.625 C 5.425781 -8.625 5.113281 -8.582031 4.84375 -8.5 C 4.570312 -8.425781 4.34375 -8.320312 4.15625 -8.1875 C 3.976562 -8.0625 3.84375 -7.910156 3.75 -7.734375 C 3.664062 -7.566406 3.625 -7.390625 3.625 -7.203125 C 3.625 -7.015625 3.660156 -6.847656 3.734375 -6.703125 C 3.804688 -6.554688 3.929688 -6.421875 4.109375 -6.296875 C 4.285156 -6.179688 4.523438 -6.078125 4.828125 -5.984375 C 5.128906 -5.890625 5.507812 -5.796875 5.96875 -5.703125 C 6.582031 -5.578125 7.128906 -5.429688 7.609375 -5.265625 C 8.085938 -5.109375 8.488281 -4.914062 8.8125 -4.6875 C 9.144531 -4.457031 9.394531 -4.191406 9.5625 -3.890625 C 9.738281 -3.585938 9.828125 -3.238281 9.828125 -2.84375 C 9.828125 -2.414062 9.726562 -2.023438 9.53125 -1.671875 C 9.332031 -1.328125 9.054688 -1.03125 8.703125 -0.78125 C 8.347656 -0.53125 7.925781 -0.335938 7.4375 -0.203125 C 6.945312 -0.0664062 6.410156 0 5.828125 0 C 5.160156 0 4.5625 -0.0859375 4.03125 -0.265625 C 3.507812 -0.441406 3.066406 -0.675781 2.703125 -0.96875 C 2.347656 -1.257812 2.070312 -1.59375 1.875 -1.96875 C 1.6875 -2.351562 1.59375 -2.75 1.59375 -3.15625 L 3.28125 -3.15625 C 3.300781 -2.820312 3.390625 -2.539062 3.546875 -2.3125 C 3.710938 -2.082031 3.914062 -1.894531 4.15625 -1.75 C 4.394531 -1.613281 4.660156 -1.515625 4.953125 -1.453125 C 5.242188 -1.398438 5.535156 -1.375 5.828125 -1.375 C 6.535156 -1.375 7.09375 -1.5 7.5 -1.75 C 7.914062 -2 8.128906 -2.335938 8.140625 -2.765625 Z M 8.140625 -2.765625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-13">
<path style="stroke:none;" d="M 8.890625 -5.703125 L 3.34375 -5.703125 L 3.34375 -1.421875 L 9.8125 -1.421875 L 9.8125 0 L 1.65625 0 L 1.65625 -13 L 9.734375 -13 L 9.734375 -11.5625 L 3.34375 -11.5625 L 3.34375 -7.109375 L 8.890625 -7.109375 Z M 8.890625 -5.703125 "/>
</symbol>
<symbol overflow="visible" id="glyph0-14">
<path style="stroke:none;" d=""/>
</symbol>
<symbol overflow="visible" id="glyph0-15">
<path style="stroke:none;" d="M 8.046875 -10 C 8.203125 -10 8.363281 -10 8.53125 -10 C 8.707031 -10 8.875 -9.988281 9.03125 -9.96875 C 9.1875 -9.945312 9.328125 -9.914062 9.453125 -9.875 C 9.585938 -9.84375 9.695312 -9.8125 9.78125 -9.78125 L 9.5625 -8.140625 C 9.226562 -8.210938 8.910156 -8.265625 8.609375 -8.296875 C 8.316406 -8.328125 8.007812 -8.34375 7.6875 -8.34375 C 6.90625 -8.34375 6.269531 -8.164062 5.78125 -7.8125 C 5.289062 -7.457031 4.929688 -6.957031 4.703125 -6.3125 L 4.703125 0 L 3 0 L 3 -10 L 4.609375 -10 L 4.6875 -8.265625 C 5.082031 -8.796875 5.5625 -9.21875 6.125 -9.53125 C 6.6875 -9.84375 7.328125 -10 8.046875 -10 Z M 8.046875 -10 "/>
</symbol>
<symbol overflow="visible" id="glyph0-16">
<path style="stroke:none;" d="M 2.71875 -10 L 7.703125 -10 L 7.703125 0.03125 C 7.703125 0.664062 7.613281 1.226562 7.4375 1.71875 C 7.269531 2.207031 7.019531 2.617188 6.6875 2.953125 C 6.351562 3.296875 5.945312 3.554688 5.46875 3.734375 C 5 3.910156 4.457031 4 3.84375 4 C 3.5 4 3.175781 4 2.875 4 C 2.570312 4 2.253906 3.957031 1.921875 3.875 L 2.046875 2.484375 C 2.148438 2.492188 2.28125 2.507812 2.4375 2.53125 C 2.59375 2.5625 2.75 2.578125 2.90625 2.578125 C 3.070312 2.578125 3.226562 2.578125 3.375 2.578125 C 3.519531 2.578125 3.640625 2.578125 3.734375 2.578125 C 4.046875 2.578125 4.34375 2.535156 4.625 2.453125 C 4.90625 2.367188 5.144531 2.226562 5.34375 2.03125 C 5.550781 1.832031 5.710938 1.570312 5.828125 1.25 C 5.953125 0.925781 6.015625 0.523438 6.015625 0.046875 L 6.015625 -8.546875 L 2.71875 -8.546875 Z M 5.78125 -12.015625 C 5.78125 -12.285156 5.859375 -12.515625 6.015625 -12.703125 C 6.179688 -12.898438 6.4375 -13 6.78125 -13 C 7.125 -13 7.378906 -12.898438 7.546875 -12.703125 C 7.710938 -12.515625 7.796875 -12.285156 7.796875 -12.015625 C 7.796875 -11.742188 7.710938 -11.515625 7.546875 -11.328125 C 7.378906 -11.140625 7.125 -11.046875 6.78125 -11.046875 C 6.4375 -11.046875 6.179688 -11.140625 6.015625 -11.328125 C 5.859375 -11.515625 5.78125 -11.742188 5.78125 -12.015625 Z M 5.78125 -12.015625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-17">
<path style="stroke:none;" d="M 5.796875 -1.375 C 6.097656 -1.375 6.390625 -1.421875 6.671875 -1.515625 C 6.960938 -1.609375 7.21875 -1.738281 7.4375 -1.90625 C 7.664062 -2.070312 7.847656 -2.269531 7.984375 -2.5 C 8.128906 -2.726562 8.203125 -2.972656 8.203125 -3.234375 L 9.796875 -3.234375 C 9.796875 -2.804688 9.679688 -2.394531 9.453125 -2 C 9.234375 -1.613281 8.9375 -1.273438 8.5625 -0.984375 C 8.195312 -0.691406 7.773438 -0.453125 7.296875 -0.265625 C 6.816406 -0.0859375 6.316406 0 5.796875 0 C 5.046875 0 4.390625 -0.128906 3.828125 -0.390625 C 3.265625 -0.648438 2.796875 -1 2.421875 -1.4375 C 2.054688 -1.882812 1.773438 -2.394531 1.578125 -2.96875 C 1.390625 -3.550781 1.296875 -4.164062 1.296875 -4.8125 L 1.296875 -5.1875 C 1.296875 -5.832031 1.390625 -6.441406 1.578125 -7.015625 C 1.773438 -7.597656 2.054688 -8.109375 2.421875 -8.546875 C 2.796875 -8.992188 3.265625 -9.347656 3.828125 -9.609375 C 4.390625 -9.867188 5.046875 -10 5.796875 -10 C 6.378906 -10 6.910156 -9.910156 7.390625 -9.734375 C 7.878906 -9.554688 8.300781 -9.3125 8.65625 -9 C 9.019531 -8.6875 9.300781 -8.3125 9.5 -7.875 C 9.695312 -7.445312 9.796875 -6.988281 9.796875 -6.5 L 8.203125 -6.5 C 8.203125 -6.789062 8.140625 -7.0625 8.015625 -7.3125 C 7.890625 -7.570312 7.71875 -7.800781 7.5 -8 C 7.289062 -8.195312 7.035156 -8.347656 6.734375 -8.453125 C 6.441406 -8.566406 6.128906 -8.625 5.796875 -8.625 C 5.265625 -8.625 4.820312 -8.519531 4.46875 -8.3125 C 4.113281 -8.113281 3.828125 -7.847656 3.609375 -7.515625 C 3.390625 -7.191406 3.234375 -6.828125 3.140625 -6.421875 C 3.046875 -6.015625 3 -5.601562 3 -5.1875 L 3 -4.8125 C 3 -4.394531 3.046875 -3.976562 3.140625 -3.5625 C 3.234375 -3.15625 3.382812 -2.789062 3.59375 -2.46875 C 3.8125 -2.144531 4.097656 -1.878906 4.453125 -1.671875 C 4.816406 -1.472656 5.265625 -1.375 5.796875 -1.375 Z M 5.796875 -1.375 "/>
</symbol>
<symbol overflow="visible" id="glyph0-18">
<path style="stroke:none;" d="M 4.109375 0 L 4.109375 -8.703125 L 1.390625 -8.703125 L 1.390625 -10 L 4.109375 -10 L 4.109375 -10.640625 C 4.109375 -11.210938 4.195312 -11.710938 4.375 -12.140625 C 4.5625 -12.578125 4.820312 -12.941406 5.15625 -13.234375 C 5.5 -13.535156 5.90625 -13.757812 6.375 -13.90625 C 6.851562 -14.050781 7.382812 -14.125 7.96875 -14.125 C 8.363281 -14.125 8.75 -14.085938 9.125 -14.015625 C 9.507812 -13.953125 9.90625 -13.867188 10.3125 -13.765625 L 10.109375 -12.421875 C 9.859375 -12.492188 9.566406 -12.554688 9.234375 -12.609375 C 8.910156 -12.660156 8.554688 -12.6875 8.171875 -12.6875 C 7.390625 -12.6875 6.796875 -12.515625 6.390625 -12.171875 C 5.992188 -11.835938 5.796875 -11.316406 5.796875 -10.609375 L 5.796875 -10 L 9.59375 -10 L 9.59375 -8.703125 L 5.796875 -8.703125 L 5.796875 0 Z M 4.109375 0 "/>
</symbol>
<symbol overflow="visible" id="glyph0-19">
<path style="stroke:none;" d="M 2.359375 -10 L 2.40625 -8.90625 C 2.601562 -9.25 2.863281 -9.515625 3.1875 -9.703125 C 3.519531 -9.898438 3.914062 -10 4.375 -10 C 5.28125 -10 5.882812 -9.65625 6.1875 -8.96875 C 6.382812 -9.28125 6.640625 -9.53125 6.953125 -9.71875 C 7.273438 -9.90625 7.664062 -10 8.125 -10 C 8.84375 -10 9.394531 -9.773438 9.78125 -9.328125 C 10.175781 -8.890625 10.375 -8.222656 10.375 -7.328125 L 10.375 0 L 8.765625 0 L 8.765625 -7.359375 C 8.765625 -8.179688 8.382812 -8.59375 7.625 -8.59375 C 7.425781 -8.59375 7.253906 -8.5625 7.109375 -8.5 C 6.960938 -8.445312 6.835938 -8.375 6.734375 -8.28125 C 6.640625 -8.1875 6.566406 -8.078125 6.515625 -7.953125 C 6.460938 -7.835938 6.425781 -7.710938 6.40625 -7.578125 L 6.40625 0 L 4.8125 0 L 4.8125 -7.375 C 4.8125 -7.769531 4.722656 -8.070312 4.546875 -8.28125 C 4.367188 -8.488281 4.085938 -8.59375 3.703125 -8.59375 C 3.347656 -8.59375 3.070312 -8.519531 2.875 -8.375 C 2.6875 -8.238281 2.546875 -8.054688 2.453125 -7.828125 L 2.453125 0 L 0.84375 0 L 0.84375 -10 Z M 2.359375 -10 "/>
</symbol>
<symbol overflow="visible" id="glyph0-20">
<path style="stroke:none;" d="M 4.546875 -4.640625 L 3.296875 -3.453125 L 3.296875 0 L 1.609375 0 L 1.609375 -14 L 3.296875 -14 L 3.296875 -5.515625 L 4.40625 -6.71875 L 7.640625 -10 L 9.6875 -10 L 5.703125 -5.828125 L 10.296875 0 L 8.15625 0 Z M 4.546875 -4.640625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-21">
<path style="stroke:none;" d="M 1.28125 -5.078125 C 1.28125 -5.804688 1.367188 -6.46875 1.546875 -7.0625 C 1.722656 -7.664062 1.976562 -8.179688 2.3125 -8.609375 C 2.65625 -9.046875 3.070312 -9.382812 3.5625 -9.625 C 4.0625 -9.875 4.628906 -10 5.265625 -10 C 5.847656 -10 6.359375 -9.898438 6.796875 -9.703125 C 7.242188 -9.503906 7.632812 -9.21875 7.96875 -8.84375 L 8.046875 -10 L 9.59375 -10 L 9.59375 4 L 7.90625 4 L 7.90625 -1.078125 C 7.570312 -0.734375 7.1875 -0.46875 6.75 -0.28125 C 6.3125 -0.09375 5.8125 0 5.25 0 C 4.613281 0 4.050781 -0.125 3.5625 -0.375 C 3.070312 -0.625 2.65625 -0.96875 2.3125 -1.40625 C 1.976562 -1.851562 1.722656 -2.375 1.546875 -2.96875 C 1.367188 -3.5625 1.28125 -4.203125 1.28125 -4.890625 Z M 2.96875 -4.890625 C 2.96875 -4.421875 3.019531 -3.972656 3.125 -3.546875 C 3.226562 -3.128906 3.390625 -2.757812 3.609375 -2.4375 C 3.828125 -2.113281 4.101562 -1.851562 4.4375 -1.65625 C 4.78125 -1.46875 5.1875 -1.375 5.65625 -1.375 C 6.195312 -1.375 6.648438 -1.492188 7.015625 -1.734375 C 7.378906 -1.972656 7.675781 -2.28125 7.90625 -2.65625 L 7.90625 -7.375 C 7.789062 -7.5625 7.65625 -7.726562 7.5 -7.875 C 7.351562 -8.019531 7.1875 -8.148438 7 -8.265625 C 6.820312 -8.378906 6.617188 -8.46875 6.390625 -8.53125 C 6.171875 -8.59375 5.929688 -8.625 5.671875 -8.625 C 5.203125 -8.625 4.796875 -8.523438 4.453125 -8.328125 C 4.117188 -8.128906 3.835938 -7.867188 3.609375 -7.546875 C 3.390625 -7.222656 3.226562 -6.847656 3.125 -6.421875 C 3.019531 -5.992188 2.96875 -5.546875 2.96875 -5.078125 Z M 2.96875 -4.890625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-22">
<path style="stroke:none;" d="M 7.984375 -1.359375 C 7.660156 -0.867188 7.25 -0.519531 6.75 -0.3125 C 6.257812 -0.101562 5.691406 0 5.046875 0 C 4.535156 0 4.066406 -0.078125 3.640625 -0.234375 C 3.222656 -0.398438 2.863281 -0.648438 2.5625 -0.984375 C 2.269531 -1.328125 2.039062 -1.757812 1.875 -2.28125 C 1.71875 -2.8125 1.640625 -3.441406 1.640625 -4.171875 L 1.640625 -10 L 3.328125 -10 L 3.328125 -4.15625 C 3.328125 -3.625 3.367188 -3.179688 3.453125 -2.828125 C 3.535156 -2.472656 3.660156 -2.191406 3.828125 -1.984375 C 4.003906 -1.773438 4.210938 -1.628906 4.453125 -1.546875 C 4.703125 -1.460938 4.988281 -1.421875 5.3125 -1.421875 C 6 -1.421875 6.550781 -1.554688 6.96875 -1.828125 C 7.394531 -2.109375 7.710938 -2.488281 7.921875 -2.96875 L 7.921875 -10 L 9.625 -10 L 9.625 0 L 8.09375 0 Z M 7.984375 -1.359375 "/>
</symbol>
<symbol overflow="visible" id="glyph0-23">
<path style="stroke:none;" d="M 1.84375 -14 L 6.890625 -14 L 6.890625 -1.453125 L 10.109375 -1.453125 L 10.109375 0 L 1.84375 0 L 1.84375 -1.453125 L 5.203125 -1.453125 L 5.203125 -12.546875 L 1.84375 -12.546875 Z M 1.84375 -14 "/>
</symbol>
<symbol overflow="visible" id="glyph0-24">
<path style="stroke:none;" d="M 3.265625 -8.375 C 3.617188 -8.882812 4.054688 -9.28125 4.578125 -9.5625 C 5.097656 -9.851562 5.675781 -10 6.3125 -10 C 6.832031 -10 7.300781 -9.925781 7.71875 -9.78125 C 8.144531 -9.632812 8.503906 -9.398438 8.796875 -9.078125 C 9.097656 -8.765625 9.328125 -8.367188 9.484375 -7.890625 C 9.648438 -7.410156 9.734375 -6.84375 9.734375 -6.1875 L 9.734375 0 L 8.046875 0 L 8.046875 -6.21875 C 8.046875 -7.019531 7.851562 -7.613281 7.46875 -8 C 7.082031 -8.394531 6.53125 -8.59375 5.8125 -8.59375 C 5.269531 -8.59375 4.78125 -8.457031 4.34375 -8.1875 C 3.90625 -7.925781 3.546875 -7.578125 3.265625 -7.140625 L 3.265625 0 L 1.59375 0 L 1.59375 -14 L 3.265625 -14 Z M 3.265625 -8.375 "/>
</symbol>
<symbol overflow="visible" id="glyph0-25">
<path style="stroke:none;" d="M 10.546875 -11.5625 L 6.4375 -11.5625 L 6.4375 0 L 4.796875 0 L 4.796875 -11.5625 L 0.6875 -11.5625 L 0.6875 -13 L 10.546875 -13 Z M 10.546875 -11.5625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-26">
<path style="stroke:none;" d="M 1.5625 0 L 1.5625 -13 L 5.515625 -13 C 6.066406 -13 6.601562 -12.925781 7.125 -12.78125 C 7.644531 -12.644531 8.109375 -12.425781 8.515625 -12.125 C 8.921875 -11.832031 9.242188 -11.457031 9.484375 -11 C 9.734375 -10.539062 9.851562 -9.984375 9.84375 -9.328125 C 9.84375 -8.972656 9.785156 -8.648438 9.671875 -8.359375 C 9.566406 -8.066406 9.421875 -7.800781 9.234375 -7.5625 C 9.054688 -7.320312 8.84375 -7.109375 8.59375 -6.921875 C 8.34375 -6.742188 8.078125 -6.597656 7.796875 -6.484375 C 8.148438 -6.390625 8.472656 -6.25 8.765625 -6.0625 C 9.054688 -5.882812 9.304688 -5.671875 9.515625 -5.421875 C 9.734375 -5.171875 9.898438 -4.890625 10.015625 -4.578125 C 10.140625 -4.265625 10.203125 -3.921875 10.203125 -3.546875 C 10.210938 -2.972656 10.09375 -2.460938 9.84375 -2.015625 C 9.601562 -1.578125 9.28125 -1.207031 8.875 -0.90625 C 8.46875 -0.613281 8 -0.390625 7.46875 -0.234375 C 6.9375 -0.078125 6.382812 0 5.8125 0 Z M 3.265625 -5.703125 L 3.265625 -1.421875 L 5.859375 -1.421875 C 6.210938 -1.421875 6.546875 -1.46875 6.859375 -1.5625 C 7.179688 -1.664062 7.460938 -1.804688 7.703125 -1.984375 C 7.941406 -2.171875 8.132812 -2.394531 8.28125 -2.65625 C 8.425781 -2.914062 8.5 -3.21875 8.5 -3.5625 C 8.5 -3.90625 8.429688 -4.207031 8.296875 -4.46875 C 8.171875 -4.726562 7.992188 -4.945312 7.765625 -5.125 C 7.535156 -5.3125 7.265625 -5.453125 6.953125 -5.546875 C 6.640625 -5.648438 6.304688 -5.703125 5.953125 -5.703125 Z M 3.265625 -7.109375 L 5.609375 -7.109375 C 5.929688 -7.109375 6.242188 -7.15625 6.546875 -7.25 C 6.847656 -7.351562 7.117188 -7.5 7.359375 -7.6875 C 7.597656 -7.882812 7.789062 -8.117188 7.9375 -8.390625 C 8.082031 -8.671875 8.15625 -8.992188 8.15625 -9.359375 C 8.15625 -9.742188 8.082031 -10.078125 7.9375 -10.359375 C 7.789062 -10.640625 7.597656 -10.867188 7.359375 -11.046875 C 7.117188 -11.222656 6.84375 -11.351562 6.53125 -11.4375 C 6.21875 -11.519531 5.898438 -11.5625 5.578125 -11.5625 L 3.265625 -11.5625 Z M 3.265625 -7.109375 "/>
</symbol>
<symbol overflow="visible" id="glyph0-27">
<path style="stroke:none;" d="M 7.921875 -3.6875 L 3.484375 -3.6875 L 2.421875 0 L 0.734375 0 L 5.03125 -13 L 6.4375 -13 L 10.65625 0 L 8.96875 0 Z M 3.953125 -5.125 L 7.46875 -5.125 L 5.71875 -10.546875 Z M 3.953125 -5.125 "/>
</symbol>
<symbol overflow="visible" id="glyph0-28">
<path style="stroke:none;" d="M 3.421875 -5.71875 L 3.421875 0 L 1.734375 0 L 1.734375 -13 L 6.046875 -13 C 6.640625 -13 7.203125 -12.914062 7.734375 -12.75 C 8.265625 -12.59375 8.726562 -12.359375 9.125 -12.046875 C 9.53125 -11.742188 9.847656 -11.363281 10.078125 -10.90625 C 10.316406 -10.457031 10.4375 -9.941406 10.4375 -9.359375 C 10.4375 -8.773438 10.316406 -8.253906 10.078125 -7.796875 C 9.847656 -7.347656 9.53125 -6.96875 9.125 -6.65625 C 8.726562 -6.351562 8.265625 -6.117188 7.734375 -5.953125 C 7.203125 -5.796875 6.640625 -5.71875 6.046875 -5.71875 Z M 3.421875 -7.09375 L 6.046875 -7.09375 C 6.429688 -7.09375 6.785156 -7.144531 7.109375 -7.25 C 7.441406 -7.351562 7.726562 -7.5 7.96875 -7.6875 C 8.21875 -7.882812 8.410156 -8.117188 8.546875 -8.390625 C 8.679688 -8.660156 8.75 -8.976562 8.75 -9.34375 C 8.75 -9.6875 8.679688 -10 8.546875 -10.28125 C 8.410156 -10.570312 8.222656 -10.816406 7.984375 -11.015625 C 7.742188 -11.210938 7.457031 -11.363281 7.125 -11.46875 C 6.789062 -11.570312 6.429688 -11.625 6.046875 -11.625 L 3.421875 -11.625 Z M 3.421875 -7.09375 "/>
</symbol>
<symbol overflow="visible" id="glyph0-29">
<path style="stroke:none;" d="M 1.59375 -13 L 9.609375 -13 L 9.609375 -11.53125 L 6.421875 -11.53125 L 6.421875 -1.453125 L 9.609375 -1.453125 L 9.609375 0 L 1.59375 0 L 1.59375 -1.453125 L 4.703125 -1.453125 L 4.703125 -11.53125 L 1.59375 -11.53125 Z M 1.59375 -13 "/>
</symbol>
<symbol overflow="visible" id="glyph0-30">
<path style="stroke:none;" d="M 1.265625 -5.078125 C 1.265625 -5.804688 1.359375 -6.46875 1.546875 -7.0625 C 1.734375 -7.664062 2 -8.179688 2.34375 -8.609375 C 2.6875 -9.046875 3.097656 -9.382812 3.578125 -9.625 C 4.066406 -9.875 4.613281 -10 5.21875 -10 C 5.800781 -10 6.3125 -9.898438 6.75 -9.703125 C 7.195312 -9.503906 7.582031 -9.21875 7.90625 -8.84375 L 7.90625 -14 L 9.59375 -14 L 9.59375 0 L 8.046875 0 L 7.96875 -1.046875 C 7.632812 -0.703125 7.238281 -0.441406 6.78125 -0.265625 C 6.332031 -0.0859375 5.804688 0 5.203125 0 C 4.597656 0 4.054688 -0.125 3.578125 -0.375 C 3.097656 -0.625 2.6875 -0.96875 2.34375 -1.40625 C 2 -1.851562 1.734375 -2.375 1.546875 -2.96875 C 1.359375 -3.5625 1.265625 -4.203125 1.265625 -4.890625 Z M 2.953125 -4.796875 C 2.953125 -4.316406 3.003906 -3.863281 3.109375 -3.4375 C 3.210938 -3.007812 3.367188 -2.628906 3.578125 -2.296875 C 3.796875 -1.972656 4.070312 -1.71875 4.40625 -1.53125 C 4.75 -1.34375 5.148438 -1.25 5.609375 -1.25 C 5.898438 -1.25 6.160156 -1.28125 6.390625 -1.34375 C 6.617188 -1.40625 6.828125 -1.5 7.015625 -1.625 C 7.203125 -1.75 7.367188 -1.894531 7.515625 -2.0625 C 7.660156 -2.238281 7.789062 -2.4375 7.90625 -2.65625 L 7.90625 -7.203125 C 7.6875 -7.597656 7.390625 -7.925781 7.015625 -8.1875 C 6.648438 -8.445312 6.191406 -8.578125 5.640625 -8.578125 C 5.160156 -8.578125 4.75 -8.476562 4.40625 -8.28125 C 4.070312 -8.09375 3.796875 -7.832031 3.578125 -7.5 C 3.367188 -7.164062 3.210938 -6.78125 3.109375 -6.34375 C 3.003906 -5.914062 2.953125 -5.460938 2.953125 -4.984375 Z M 2.953125 -4.796875 "/>
</symbol>
<symbol overflow="visible" id="glyph0-31">
<path style="stroke:none;" d="M 5.453125 -2.453125 L 5.609375 -1.84375 L 5.765625 -2.453125 L 8.53125 -10 L 10.25 -10 L 6.234375 0 L 4.953125 0 L 0.890625 -10 L 2.625 -10 Z M 5.453125 -2.453125 "/>
</symbol>
<symbol overflow="visible" id="glyph0-32">
<path style="stroke:none;" d="M 5.21875 -3.546875 L 5.65625 -2.34375 L 8.65625 -10 L 10.546875 -10 L 5.546875 1.515625 C 5.429688 1.765625 5.28125 2.035156 5.09375 2.328125 C 4.914062 2.617188 4.695312 2.882812 4.4375 3.125 C 4.1875 3.363281 3.890625 3.566406 3.546875 3.734375 C 3.210938 3.910156 2.820312 4 2.375 4 C 2.300781 4 2.210938 4 2.109375 4 C 2.015625 4 1.914062 3.988281 1.8125 3.96875 C 1.71875 3.957031 1.628906 3.941406 1.546875 3.921875 C 1.460938 3.910156 1.394531 3.898438 1.34375 3.890625 L 1.609375 2.5 C 1.648438 2.5 1.707031 2.5 1.78125 2.5 C 1.851562 2.5 1.929688 2.5 2.015625 2.5 C 2.097656 2.5 2.175781 2.5 2.25 2.5 C 2.320312 2.5 2.378906 2.5 2.421875 2.5 C 2.648438 2.5 2.859375 2.429688 3.046875 2.296875 C 3.242188 2.171875 3.414062 2.019531 3.5625 1.84375 C 3.707031 1.675781 3.832031 1.5 3.9375 1.3125 C 4.050781 1.125 4.132812 0.96875 4.1875 0.84375 L 4.875 -0.46875 L 0.625 -10 L 2.5 -10 Z M 5.21875 -3.546875 "/>
</symbol>
<symbol overflow="visible" id="glyph0-33">
<path style="stroke:none;" d="M 5.953125 -13 L 5.765625 -9.65625 L 4.5 -9.65625 L 4.515625 -12.84375 L 4.515625 -14 L 5.953125 -14 Z M 5.953125 -13 "/>
</symbol>
<symbol overflow="visible" id="glyph0-34">
<path style="stroke:none;" d="M 3.078125 -3.625 L 3.28125 -2.1875 L 3.53125 -3.625 L 5.109375 -10 L 6.1875 -10 L 7.765625 -3.625 L 8.015625 -2.046875 L 8.265625 -3.625 L 9.359375 -10 L 10.859375 -10 L 8.765625 0 L 7.4375 0 L 5.890625 -6.125 L 5.640625 -7.6875 L 5.390625 -6.125 L 3.859375 0 L 2.53125 0 L 0.4375 -10 L 1.9375 -10 Z M 3.078125 -3.625 "/>
</symbol>
<symbol overflow="visible" id="glyph0-35">
<path style="stroke:none;" d="M 8.96875 -5.6875 L 3.453125 -5.6875 L 3.453125 0 L 1.734375 0 L 1.734375 -13 L 9.890625 -13 L 9.890625 -11.5625 L 3.453125 -11.5625 L 3.453125 -7.125 L 8.96875 -7.125 Z M 8.96875 -5.6875 "/>
</symbol>
<symbol overflow="visible" id="glyph0-36">
<path style="stroke:none;" d="M 5.984375 -5.71875 L 3.328125 -5.71875 L 3.328125 0 L 1.65625 0 L 1.65625 -13 L 5.546875 -13 C 6.160156 -13 6.738281 -12.921875 7.28125 -12.765625 C 7.832031 -12.617188 8.3125 -12.394531 8.71875 -12.09375 C 9.132812 -11.789062 9.457031 -11.410156 9.6875 -10.953125 C 9.925781 -10.492188 10.046875 -9.953125 10.046875 -9.328125 C 10.046875 -8.929688 9.984375 -8.566406 9.859375 -8.234375 C 9.734375 -7.898438 9.5625 -7.597656 9.34375 -7.328125 C 9.125 -7.054688 8.863281 -6.816406 8.5625 -6.609375 C 8.257812 -6.398438 7.925781 -6.222656 7.5625 -6.078125 L 10.375 0 L 8.59375 0 Z M 3.328125 -7.09375 L 5.59375 -7.09375 C 5.96875 -7.09375 6.320312 -7.140625 6.65625 -7.234375 C 6.988281 -7.335938 7.28125 -7.484375 7.53125 -7.671875 C 7.78125 -7.867188 7.976562 -8.101562 8.125 -8.375 C 8.269531 -8.65625 8.34375 -8.972656 8.34375 -9.328125 C 8.34375 -9.710938 8.273438 -10.046875 8.140625 -10.328125 C 8.003906 -10.609375 7.8125 -10.84375 7.5625 -11.03125 C 7.3125 -11.226562 7.015625 -11.375 6.671875 -11.46875 C 6.328125 -11.570312 5.953125 -11.625 5.546875 -11.625 L 3.328125 -11.625 Z M 3.328125 -7.09375 "/>
</symbol>
<symbol overflow="visible" id="glyph0-37">
<path style="stroke:none;" d="M 9.90625 0 L 8.3125 0 L 8.3125 -5.703125 L 2.875 -5.703125 L 2.875 0 L 1.28125 0 L 1.28125 -13 L 2.875 -13 L 2.875 -7.109375 L 8.3125 -7.109375 L 8.3125 -13 L 9.90625 -13 Z M 9.90625 0 "/>
</symbol>
<symbol overflow="visible" id="glyph0-38">
<path style="stroke:none;" d="M 4.984375 -1.265625 C 4.984375 -1.441406 5.007812 -1.609375 5.0625 -1.765625 C 5.125 -1.921875 5.207031 -2.054688 5.3125 -2.171875 C 5.425781 -2.296875 5.5625 -2.390625 5.71875 -2.453125 C 5.882812 -2.523438 6.078125 -2.5625 6.296875 -2.5625 C 6.515625 -2.5625 6.707031 -2.523438 6.875 -2.453125 C 7.039062 -2.390625 7.179688 -2.296875 7.296875 -2.171875 C 7.410156 -2.054688 7.492188 -1.921875 7.546875 -1.765625 C 7.609375 -1.609375 7.640625 -1.441406 7.640625 -1.265625 C 7.640625 -1.085938 7.609375 -0.921875 7.546875 -0.765625 C 7.492188 -0.609375 7.410156 -0.472656 7.296875 -0.359375 C 7.179688 -0.242188 7.039062 -0.15625 6.875 -0.09375 C 6.707031 -0.03125 6.515625 0 6.296875 0 C 6.078125 0 5.882812 -0.03125 5.71875 -0.09375 C 5.5625 -0.15625 5.425781 -0.242188 5.3125 -0.359375 C 5.207031 -0.472656 5.125 -0.609375 5.0625 -0.765625 C 5.007812 -0.921875 4.984375 -1.085938 4.984375 -1.265625 Z M 4.984375 -8.6875 C 4.984375 -8.875 5.007812 -9.046875 5.0625 -9.203125 C 5.125 -9.359375 5.207031 -9.492188 5.3125 -9.609375 C 5.425781 -9.734375 5.5625 -9.828125 5.71875 -9.890625 C 5.882812 -9.960938 6.078125 -10 6.296875 -10 C 6.515625 -10 6.707031 -9.960938 6.875 -9.890625 C 7.039062 -9.828125 7.179688 -9.734375 7.296875 -9.609375 C 7.410156 -9.492188 7.492188 -9.359375 7.546875 -9.203125 C 7.609375 -9.046875 7.640625 -8.875 7.640625 -8.6875 C 7.640625 -8.519531 7.609375 -8.359375 7.546875 -8.203125 C 7.492188 -8.046875 7.410156 -7.910156 7.296875 -7.796875 C 7.179688 -7.679688 7.039062 -7.59375 6.875 -7.53125 C 6.707031 -7.46875 6.515625 -7.4375 6.296875 -7.4375 C 6.078125 -7.4375 5.882812 -7.46875 5.71875 -7.53125 C 5.5625 -7.59375 5.425781 -7.679688 5.3125 -7.796875 C 5.207031 -7.910156 5.125 -8.046875 5.0625 -8.203125 C 5.007812 -8.359375 4.984375 -8.519531 4.984375 -8.6875 Z M 4.984375 -8.6875 "/>
</symbol>
<symbol overflow="visible" id="glyph0-39">
<path style="stroke:none;" d="M 4.890625 -6.09375 L 1.453125 -6.953125 L 1.953125 -8.546875 L 5.28125 -7.171875 L 5.046875 -11 L 6.671875 -11 L 6.40625 -7.125 L 9.71875 -8.484375 L 10.21875 -6.875 L 6.734375 -6.015625 L 9.0625 -3.078125 L 7.734375 -2.078125 L 5.78125 -5.375 L 3.84375 -2.15625 L 2.515625 -3.125 Z M 4.890625 -6.09375 "/>
</symbol>
</g>
</defs>
<g id="surface46506">
<path style="fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(40.784314%,71.764706%,13.72549%);stroke-opacity:1;stroke-miterlimit:10;" d="M 984.889648 203.423416 C 984.889648 298.423416 984.889648 298.423416 984.889648 393.423416 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<path style="fill-rule:nonzero;fill:rgb(40.784314%,71.764706%,13.72549%);fill-opacity:1;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(100%,100%,100%);stroke-opacity:1;stroke-miterlimit:10;" d="M 984.889648 396.423416 L 992.920898 384.954666 L 976.858398 384.954666 Z M 984.889648 396.423416 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<path style="fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(40.784314%,71.764706%,13.72549%);stroke-opacity:1;stroke-miterlimit:10;" d="M 984.889648 521.423416 C 984.889648 579.923416 831.389648 579.923416 831.389648 638.423416 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<path style="fill-rule:nonzero;fill:rgb(40.784314%,71.764706%,13.72549%);fill-opacity:1;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(100%,100%,100%);stroke-opacity:1;stroke-miterlimit:10;" d="M 831.389648 641.423416 L 840.776367 631.036697 L 824.842773 629.048416 Z M 831.389648 641.423416 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 21 534 L 295 534 L 295 703 L 21 703 Z M 21 534 "/>
<path style="fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(40.784314%,71.764706%,13.72549%);stroke-opacity:1;stroke-miterlimit:10;" d="M 694.389648 653.423416 L 694.389648 643.423416 L 968.389648 643.423416 L 968.389648 653.423416 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-1" x="26" y="557"/>
<use xlink:href="#glyph0-2" x="37" y="557"/>
<use xlink:href="#glyph0-3" x="48" y="557"/>
<use xlink:href="#glyph0-4" x="59" y="557"/>
<use xlink:href="#glyph0-1" x="70" y="557"/>
<use xlink:href="#glyph0-5" x="81" y="557"/>
<use xlink:href="#glyph0-6" x="92" y="557"/>
<use xlink:href="#glyph0-7" x="103" y="557"/>
<use xlink:href="#glyph0-8" x="114" y="557"/>
<use xlink:href="#glyph0-9" x="125" y="557"/>
<use xlink:href="#glyph0-10" x="136" y="557"/>
<use xlink:href="#glyph0-1" x="147" y="557"/>
<use xlink:href="#glyph0-9" x="158" y="557"/>
<use xlink:href="#glyph0-11" x="169" y="557"/>
<use xlink:href="#glyph0-12" x="180" y="557"/>
<use xlink:href="#glyph0-7" x="191" y="557"/>
<use xlink:href="#glyph0-4" x="202" y="557"/>
<use xlink:href="#glyph0-11" x="213" y="557"/>
<use xlink:href="#glyph0-12" x="224" y="557"/>
<use xlink:href="#glyph0-8" x="235" y="557"/>
<use xlink:href="#glyph0-5" x="246" y="557"/>
<use xlink:href="#glyph0-6" x="257" y="557"/>
<use xlink:href="#glyph0-7" x="268" y="557"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-13" x="26" y="601.875977"/>
<use xlink:href="#glyph0-10" x="37" y="601.875977"/>
<use xlink:href="#glyph0-1" x="48" y="601.875977"/>
<use xlink:href="#glyph0-9" x="59" y="601.875977"/>
<use xlink:href="#glyph0-11" x="70" y="601.875977"/>
<use xlink:href="#glyph0-12" x="81" y="601.875977"/>
<use xlink:href="#glyph0-7" x="92" y="601.875977"/>
<use xlink:href="#glyph0-4" x="103" y="601.875977"/>
<use xlink:href="#glyph0-11" x="114" y="601.875977"/>
<use xlink:href="#glyph0-12" x="125" y="601.875977"/>
<use xlink:href="#glyph0-14" x="136" y="601.875977"/>
<use xlink:href="#glyph0-6" x="147" y="601.875977"/>
<use xlink:href="#glyph0-15" x="158" y="601.875977"/>
<use xlink:href="#glyph0-4" x="169" y="601.875977"/>
<use xlink:href="#glyph0-16" x="180" y="601.875977"/>
<use xlink:href="#glyph0-9" x="191" y="601.875977"/>
<use xlink:href="#glyph0-17" x="202" y="601.875977"/>
<use xlink:href="#glyph0-1" x="213" y="601.875977"/>
<use xlink:href="#glyph0-14" x="224" y="601.875977"/>
<use xlink:href="#glyph0-18" x="235" y="601.875977"/>
<use xlink:href="#glyph0-4" x="246" y="601.875977"/>
<use xlink:href="#glyph0-15" x="257" y="601.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-19" x="26" y="624.875977"/>
<use xlink:href="#glyph0-5" x="37" y="624.875977"/>
<use xlink:href="#glyph0-20" x="48" y="624.875977"/>
<use xlink:href="#glyph0-9" x="59" y="624.875977"/>
<use xlink:href="#glyph0-14" x="70" y="624.875977"/>
<use xlink:href="#glyph0-15" x="81" y="624.875977"/>
<use xlink:href="#glyph0-9" x="92" y="624.875977"/>
<use xlink:href="#glyph0-21" x="103" y="624.875977"/>
<use xlink:href="#glyph0-22" x="114" y="624.875977"/>
<use xlink:href="#glyph0-9" x="125" y="624.875977"/>
<use xlink:href="#glyph0-12" x="136" y="624.875977"/>
<use xlink:href="#glyph0-1" x="147" y="624.875977"/>
<use xlink:href="#glyph0-12" x="158" y="624.875977"/>
<use xlink:href="#glyph0-14" x="169" y="624.875977"/>
<use xlink:href="#glyph0-19" x="180" y="624.875977"/>
<use xlink:href="#glyph0-4" x="191" y="624.875977"/>
<use xlink:href="#glyph0-15" x="202" y="624.875977"/>
<use xlink:href="#glyph0-9" x="213" y="624.875977"/>
<use xlink:href="#glyph0-14" x="224" y="624.875977"/>
<use xlink:href="#glyph0-23" x="235" y="624.875977"/>
<use xlink:href="#glyph0-4" x="246" y="624.875977"/>
<use xlink:href="#glyph0-4" x="257" y="624.875977"/>
<use xlink:href="#glyph0-20" x="268" y="624.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-23" x="26" y="647.875977"/>
<use xlink:href="#glyph0-7" x="37" y="647.875977"/>
<use xlink:href="#glyph0-20" x="48" y="647.875977"/>
<use xlink:href="#glyph0-9" x="59" y="647.875977"/>
<use xlink:href="#glyph0-14" x="70" y="647.875977"/>
<use xlink:href="#glyph0-7" x="81" y="647.875977"/>
<use xlink:href="#glyph0-11" x="92" y="647.875977"/>
<use xlink:href="#glyph0-14" x="103" y="647.875977"/>
<use xlink:href="#glyph0-1" x="114" y="647.875977"/>
<use xlink:href="#glyph0-24" x="125" y="647.875977"/>
<use xlink:href="#glyph0-9" x="136" y="647.875977"/>
<use xlink:href="#glyph0-14" x="147" y="647.875977"/>
<use xlink:href="#glyph0-25" x="158" y="647.875977"/>
<use xlink:href="#glyph0-9" x="169" y="647.875977"/>
<use xlink:href="#glyph0-23" x="180" y="647.875977"/>
<use xlink:href="#glyph0-9" x="191" y="647.875977"/>
<use xlink:href="#glyph0-2" x="202" y="647.875977"/>
<use xlink:href="#glyph0-15" x="213" y="647.875977"/>
<use xlink:href="#glyph0-5" x="224" y="647.875977"/>
<use xlink:href="#glyph0-19" x="235" y="647.875977"/>
<use xlink:href="#glyph0-14" x="246" y="647.875977"/>
<use xlink:href="#glyph0-26" x="257" y="647.875977"/>
<use xlink:href="#glyph0-4" x="268" y="647.875977"/>
<use xlink:href="#glyph0-1" x="279" y="647.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-27" x="26" y="670.875977"/>
<use xlink:href="#glyph0-28" x="37" y="670.875977"/>
<use xlink:href="#glyph0-29" x="48" y="670.875977"/>
<use xlink:href="#glyph0-14" x="59" y="670.875977"/>
<use xlink:href="#glyph0-5" x="70" y="670.875977"/>
<use xlink:href="#glyph0-11" x="81" y="670.875977"/>
<use xlink:href="#glyph0-30" x="92" y="670.875977"/>
<use xlink:href="#glyph0-14" x="103" y="670.875977"/>
<use xlink:href="#glyph0-2" x="114" y="670.875977"/>
<use xlink:href="#glyph0-7" x="125" y="670.875977"/>
<use xlink:href="#glyph0-31" x="136" y="670.875977"/>
<use xlink:href="#glyph0-9" x="147" y="670.875977"/>
<use xlink:href="#glyph0-14" x="158" y="670.875977"/>
<use xlink:href="#glyph0-4" x="169" y="670.875977"/>
<use xlink:href="#glyph0-6" x="180" y="670.875977"/>
<use xlink:href="#glyph0-6" x="191" y="670.875977"/>
<use xlink:href="#glyph0-4" x="202" y="670.875977"/>
<use xlink:href="#glyph0-15" x="213" y="670.875977"/>
<use xlink:href="#glyph0-1" x="224" y="670.875977"/>
<use xlink:href="#glyph0-22" x="235" y="670.875977"/>
<use xlink:href="#glyph0-11" x="246" y="670.875977"/>
<use xlink:href="#glyph0-7" x="257" y="670.875977"/>
<use xlink:href="#glyph0-1" x="268" y="670.875977"/>
<use xlink:href="#glyph0-32" x="279" y="670.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-1" x="26" y="693.875977"/>
<use xlink:href="#glyph0-4" x="37" y="693.875977"/>
<use xlink:href="#glyph0-14" x="48" y="693.875977"/>
<use xlink:href="#glyph0-22" x="59" y="693.875977"/>
<use xlink:href="#glyph0-12" x="70" y="693.875977"/>
<use xlink:href="#glyph0-9" x="81" y="693.875977"/>
<use xlink:href="#glyph0-14" x="92" y="693.875977"/>
<use xlink:href="#glyph0-7" x="103" y="693.875977"/>
<use xlink:href="#glyph0-1" x="114" y="693.875977"/>
<use xlink:href="#glyph0-33" x="125" y="693.875977"/>
<use xlink:href="#glyph0-12" x="136" y="693.875977"/>
<use xlink:href="#glyph0-14" x="147" y="693.875977"/>
<use xlink:href="#glyph0-9" x="158" y="693.875977"/>
<use xlink:href="#glyph0-5" x="169" y="693.875977"/>
<use xlink:href="#glyph0-12" x="180" y="693.875977"/>
<use xlink:href="#glyph0-7" x="191" y="693.875977"/>
<use xlink:href="#glyph0-9" x="202" y="693.875977"/>
<use xlink:href="#glyph0-15" x="213" y="693.875977"/>
</g>
<path style="fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(40.784314%,71.764706%,13.72549%);stroke-opacity:1;stroke-miterlimit:10;" d="M 984.889648 521.423416 C 984.889648 579.923416 1132.889648 579.923416 1132.889648 638.423416 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<path style="fill-rule:nonzero;fill:rgb(40.784314%,71.764706%,13.72549%);fill-opacity:1;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(100%,100%,100%);stroke-opacity:1;stroke-miterlimit:10;" d="M 1132.889648 641.423416 L 1139.491211 629.079666 L 1123.545898 630.997635 Z M 1132.889648 641.423416 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 317 534 L 602 534 L 602 680 L 317 680 Z M 317 534 "/>
<path style="fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(40.784314%,71.764706%,13.72549%);stroke-opacity:1;stroke-miterlimit:10;" d="M 990.389648 653.423416 L 990.389648 643.423416 L 1275.389648 643.423416 L 1275.389648 653.423416 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-1" x="322" y="557"/>
<use xlink:href="#glyph0-2" x="333" y="557"/>
<use xlink:href="#glyph0-3" x="344" y="557"/>
<use xlink:href="#glyph0-4" x="355" y="557"/>
<use xlink:href="#glyph0-1" x="366" y="557"/>
<use xlink:href="#glyph0-5" x="377" y="557"/>
<use xlink:href="#glyph0-6" x="388" y="557"/>
<use xlink:href="#glyph0-7" x="399" y="557"/>
<use xlink:href="#glyph0-8" x="410" y="557"/>
<use xlink:href="#glyph0-9" x="421" y="557"/>
<use xlink:href="#glyph0-10" x="432" y="557"/>
<use xlink:href="#glyph0-1" x="443" y="557"/>
<use xlink:href="#glyph0-9" x="454" y="557"/>
<use xlink:href="#glyph0-11" x="465" y="557"/>
<use xlink:href="#glyph0-12" x="476" y="557"/>
<use xlink:href="#glyph0-7" x="487" y="557"/>
<use xlink:href="#glyph0-4" x="498" y="557"/>
<use xlink:href="#glyph0-11" x="509" y="557"/>
<use xlink:href="#glyph0-12" x="520" y="557"/>
<use xlink:href="#glyph0-8" x="531" y="557"/>
<use xlink:href="#glyph0-22" x="542" y="557"/>
<use xlink:href="#glyph0-1" x="553" y="557"/>
<use xlink:href="#glyph0-7" x="564" y="557"/>
<use xlink:href="#glyph0-23" x="575" y="557"/>
<use xlink:href="#glyph0-12" x="586" y="557"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-13" x="322" y="601.875977"/>
<use xlink:href="#glyph0-10" x="333" y="601.875977"/>
<use xlink:href="#glyph0-1" x="344" y="601.875977"/>
<use xlink:href="#glyph0-9" x="355" y="601.875977"/>
<use xlink:href="#glyph0-11" x="366" y="601.875977"/>
<use xlink:href="#glyph0-12" x="377" y="601.875977"/>
<use xlink:href="#glyph0-7" x="388" y="601.875977"/>
<use xlink:href="#glyph0-4" x="399" y="601.875977"/>
<use xlink:href="#glyph0-11" x="410" y="601.875977"/>
<use xlink:href="#glyph0-12" x="421" y="601.875977"/>
<use xlink:href="#glyph0-14" x="432" y="601.875977"/>
<use xlink:href="#glyph0-6" x="443" y="601.875977"/>
<use xlink:href="#glyph0-15" x="454" y="601.875977"/>
<use xlink:href="#glyph0-4" x="465" y="601.875977"/>
<use xlink:href="#glyph0-16" x="476" y="601.875977"/>
<use xlink:href="#glyph0-9" x="487" y="601.875977"/>
<use xlink:href="#glyph0-17" x="498" y="601.875977"/>
<use xlink:href="#glyph0-1" x="509" y="601.875977"/>
<use xlink:href="#glyph0-14" x="520" y="601.875977"/>
<use xlink:href="#glyph0-34" x="531" y="601.875977"/>
<use xlink:href="#glyph0-7" x="542" y="601.875977"/>
<use xlink:href="#glyph0-1" x="553" y="601.875977"/>
<use xlink:href="#glyph0-24" x="564" y="601.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-22" x="322" y="624.875977"/>
<use xlink:href="#glyph0-1" x="333" y="624.875977"/>
<use xlink:href="#glyph0-7" x="344" y="624.875977"/>
<use xlink:href="#glyph0-23" x="355" y="624.875977"/>
<use xlink:href="#glyph0-12" x="366" y="624.875977"/>
<use xlink:href="#glyph0-14" x="377" y="624.875977"/>
<use xlink:href="#glyph0-1" x="388" y="624.875977"/>
<use xlink:href="#glyph0-24" x="399" y="624.875977"/>
<use xlink:href="#glyph0-7" x="410" y="624.875977"/>
<use xlink:href="#glyph0-11" x="421" y="624.875977"/>
<use xlink:href="#glyph0-2" x="432" y="624.875977"/>
<use xlink:href="#glyph0-12" x="443" y="624.875977"/>
<use xlink:href="#glyph0-14" x="454" y="624.875977"/>
<use xlink:href="#glyph0-34" x="465" y="624.875977"/>
<use xlink:href="#glyph0-24" x="476" y="624.875977"/>
<use xlink:href="#glyph0-7" x="487" y="624.875977"/>
<use xlink:href="#glyph0-17" x="498" y="624.875977"/>
<use xlink:href="#glyph0-24" x="509" y="624.875977"/>
<use xlink:href="#glyph0-14" x="520" y="624.875977"/>
<use xlink:href="#glyph0-34" x="531" y="624.875977"/>
<use xlink:href="#glyph0-7" x="542" y="624.875977"/>
<use xlink:href="#glyph0-23" x="553" y="624.875977"/>
<use xlink:href="#glyph0-23" x="564" y="624.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-19" x="322" y="647.875977"/>
<use xlink:href="#glyph0-5" x="333" y="647.875977"/>
<use xlink:href="#glyph0-20" x="344" y="647.875977"/>
<use xlink:href="#glyph0-9" x="355" y="647.875977"/>
<use xlink:href="#glyph0-14" x="366" y="647.875977"/>
<use xlink:href="#glyph0-9" x="377" y="647.875977"/>
<use xlink:href="#glyph0-5" x="388" y="647.875977"/>
<use xlink:href="#glyph0-12" x="399" y="647.875977"/>
<use xlink:href="#glyph0-7" x="410" y="647.875977"/>
<use xlink:href="#glyph0-9" x="421" y="647.875977"/>
<use xlink:href="#glyph0-15" x="432" y="647.875977"/>
<use xlink:href="#glyph0-14" x="443" y="647.875977"/>
<use xlink:href="#glyph0-30" x="454" y="647.875977"/>
<use xlink:href="#glyph0-7" x="465" y="647.875977"/>
<use xlink:href="#glyph0-18" x="476" y="647.875977"/>
<use xlink:href="#glyph0-18" x="487" y="647.875977"/>
<use xlink:href="#glyph0-9" x="498" y="647.875977"/>
<use xlink:href="#glyph0-15" x="509" y="647.875977"/>
<use xlink:href="#glyph0-9" x="520" y="647.875977"/>
<use xlink:href="#glyph0-11" x="531" y="647.875977"/>
<use xlink:href="#glyph0-1" x="542" y="647.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-4" x="322" y="670.875977"/>
<use xlink:href="#glyph0-6" x="333" y="670.875977"/>
<use xlink:href="#glyph0-9" x="344" y="670.875977"/>
<use xlink:href="#glyph0-15" x="355" y="670.875977"/>
<use xlink:href="#glyph0-5" x="366" y="670.875977"/>
<use xlink:href="#glyph0-1" x="377" y="670.875977"/>
<use xlink:href="#glyph0-7" x="388" y="670.875977"/>
<use xlink:href="#glyph0-4" x="399" y="670.875977"/>
<use xlink:href="#glyph0-11" x="410" y="670.875977"/>
<use xlink:href="#glyph0-12" x="421" y="670.875977"/>
</g>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 119.5 289 L 503.5 289 L 503.5 412 L 119.5 412 Z M 119.5 289 "/>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-25" x="124.5" y="312"/>
<use xlink:href="#glyph0-9" x="135.5" y="312"/>
<use xlink:href="#glyph0-23" x="146.5" y="312"/>
<use xlink:href="#glyph0-9" x="157.5" y="312"/>
<use xlink:href="#glyph0-2" x="168.5" y="312"/>
<use xlink:href="#glyph0-15" x="179.5" y="312"/>
<use xlink:href="#glyph0-5" x="190.5" y="312"/>
<use xlink:href="#glyph0-19" x="201.5" y="312"/>
<use xlink:href="#glyph0-26" x="212.5" y="312"/>
<use xlink:href="#glyph0-4" x="223.5" y="312"/>
<use xlink:href="#glyph0-1" x="234.5" y="312"/>
<use xlink:href="#glyph0-27" x="245.5" y="312"/>
<use xlink:href="#glyph0-28" x="256.5" y="312"/>
<use xlink:href="#glyph0-29" x="267.5" y="312"/>
<use xlink:href="#glyph0-14" x="278.5" y="312"/>
<use xlink:href="#glyph0-9" x="289.5" y="312"/>
<use xlink:href="#glyph0-10" x="300.5" y="312"/>
<use xlink:href="#glyph0-1" x="311.5" y="312"/>
<use xlink:href="#glyph0-9" x="322.5" y="312"/>
<use xlink:href="#glyph0-11" x="333.5" y="312"/>
<use xlink:href="#glyph0-12" x="344.5" y="312"/>
<use xlink:href="#glyph0-7" x="355.5" y="312"/>
<use xlink:href="#glyph0-4" x="366.5" y="312"/>
<use xlink:href="#glyph0-11" x="377.5" y="312"/>
<use xlink:href="#glyph0-12" x="388.5" y="312"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-35" x="124.5" y="356.875977"/>
<use xlink:href="#glyph0-5" x="135.5" y="356.875977"/>
<use xlink:href="#glyph0-19" x="146.5" y="356.875977"/>
<use xlink:href="#glyph0-7" x="157.5" y="356.875977"/>
<use xlink:href="#glyph0-23" x="168.5" y="356.875977"/>
<use xlink:href="#glyph0-32" x="179.5" y="356.875977"/>
<use xlink:href="#glyph0-14" x="190.5" y="356.875977"/>
<use xlink:href="#glyph0-4" x="201.5" y="356.875977"/>
<use xlink:href="#glyph0-18" x="212.5" y="356.875977"/>
<use xlink:href="#glyph0-14" x="223.5" y="356.875977"/>
<use xlink:href="#glyph0-6" x="234.5" y="356.875977"/>
<use xlink:href="#glyph0-15" x="245.5" y="356.875977"/>
<use xlink:href="#glyph0-4" x="256.5" y="356.875977"/>
<use xlink:href="#glyph0-16" x="267.5" y="356.875977"/>
<use xlink:href="#glyph0-9" x="278.5" y="356.875977"/>
<use xlink:href="#glyph0-17" x="289.5" y="356.875977"/>
<use xlink:href="#glyph0-1" x="300.5" y="356.875977"/>
<use xlink:href="#glyph0-12" x="311.5" y="356.875977"/>
<use xlink:href="#glyph0-14" x="322.5" y="356.875977"/>
<use xlink:href="#glyph0-34" x="333.5" y="356.875977"/>
<use xlink:href="#glyph0-24" x="344.5" y="356.875977"/>
<use xlink:href="#glyph0-7" x="355.5" y="356.875977"/>
<use xlink:href="#glyph0-17" x="366.5" y="356.875977"/>
<use xlink:href="#glyph0-24" x="377.5" y="356.875977"/>
<use xlink:href="#glyph0-14" x="388.5" y="356.875977"/>
<use xlink:href="#glyph0-5" x="399.5" y="356.875977"/>
<use xlink:href="#glyph0-15" x="410.5" y="356.875977"/>
<use xlink:href="#glyph0-9" x="421.5" y="356.875977"/>
<use xlink:href="#glyph0-14" x="432.5" y="356.875977"/>
<use xlink:href="#glyph0-18" x="443.5" y="356.875977"/>
<use xlink:href="#glyph0-22" x="454.5" y="356.875977"/>
<use xlink:href="#glyph0-23" x="465.5" y="356.875977"/>
<use xlink:href="#glyph0-23" x="476.5" y="356.875977"/>
<use xlink:href="#glyph0-32" x="487.5" y="356.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-3" x="124.5" y="379.875977"/>
<use xlink:href="#glyph0-5" x="135.5" y="379.875977"/>
<use xlink:href="#glyph0-12" x="146.5" y="379.875977"/>
<use xlink:href="#glyph0-9" x="157.5" y="379.875977"/>
<use xlink:href="#glyph0-30" x="168.5" y="379.875977"/>
<use xlink:href="#glyph0-14" x="179.5" y="379.875977"/>
<use xlink:href="#glyph0-4" x="190.5" y="379.875977"/>
<use xlink:href="#glyph0-11" x="201.5" y="379.875977"/>
<use xlink:href="#glyph0-14" x="212.5" y="379.875977"/>
<use xlink:href="#glyph0-25" x="223.5" y="379.875977"/>
<use xlink:href="#glyph0-9" x="234.5" y="379.875977"/>
<use xlink:href="#glyph0-23" x="245.5" y="379.875977"/>
<use xlink:href="#glyph0-9" x="256.5" y="379.875977"/>
<use xlink:href="#glyph0-2" x="267.5" y="379.875977"/>
<use xlink:href="#glyph0-15" x="278.5" y="379.875977"/>
<use xlink:href="#glyph0-5" x="289.5" y="379.875977"/>
<use xlink:href="#glyph0-19" x="300.5" y="379.875977"/>
<use xlink:href="#glyph0-26" x="311.5" y="379.875977"/>
<use xlink:href="#glyph0-4" x="322.5" y="379.875977"/>
<use xlink:href="#glyph0-1" x="333.5" y="379.875977"/>
<use xlink:href="#glyph0-27" x="344.5" y="379.875977"/>
<use xlink:href="#glyph0-28" x="355.5" y="379.875977"/>
<use xlink:href="#glyph0-29" x="366.5" y="379.875977"/>
<use xlink:href="#glyph0-14" x="377.5" y="379.875977"/>
<use xlink:href="#glyph0-5" x="388.5" y="379.875977"/>
<use xlink:href="#glyph0-11" x="399.5" y="379.875977"/>
<use xlink:href="#glyph0-30" x="410.5" y="379.875977"/>
<use xlink:href="#glyph0-14" x="421.5" y="379.875977"/>
<use xlink:href="#glyph0-9" x="432.5" y="379.875977"/>
<use xlink:href="#glyph0-10" x="443.5" y="379.875977"/>
<use xlink:href="#glyph0-1" x="454.5" y="379.875977"/>
<use xlink:href="#glyph0-9" x="465.5" y="379.875977"/>
<use xlink:href="#glyph0-11" x="476.5" y="379.875977"/>
<use xlink:href="#glyph0-30" x="487.5" y="379.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-7" x="124.5" y="402.875977"/>
<use xlink:href="#glyph0-1" x="135.5" y="402.875977"/>
<use xlink:href="#glyph0-12" x="146.5" y="402.875977"/>
<use xlink:href="#glyph0-14" x="157.5" y="402.875977"/>
<use xlink:href="#glyph0-18" x="168.5" y="402.875977"/>
<use xlink:href="#glyph0-22" x="179.5" y="402.875977"/>
<use xlink:href="#glyph0-11" x="190.5" y="402.875977"/>
<use xlink:href="#glyph0-17" x="201.5" y="402.875977"/>
<use xlink:href="#glyph0-1" x="212.5" y="402.875977"/>
<use xlink:href="#glyph0-7" x="223.5" y="402.875977"/>
<use xlink:href="#glyph0-4" x="234.5" y="402.875977"/>
<use xlink:href="#glyph0-11" x="245.5" y="402.875977"/>
<use xlink:href="#glyph0-5" x="256.5" y="402.875977"/>
<use xlink:href="#glyph0-23" x="267.5" y="402.875977"/>
<use xlink:href="#glyph0-7" x="278.5" y="402.875977"/>
<use xlink:href="#glyph0-1" x="289.5" y="402.875977"/>
<use xlink:href="#glyph0-32" x="300.5" y="402.875977"/>
</g>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(83.137255%,83.137255%,83.137255%);fill-opacity:1;" d="M 86.5 21 L 536.5 21 L 536.5 167 L 86.5 167 Z M 86.5 21 "/>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-1" x="91.5" y="44"/>
<use xlink:href="#glyph0-2" x="102.5" y="44"/>
<use xlink:href="#glyph0-3" x="113.5" y="44"/>
<use xlink:href="#glyph0-4" x="124.5" y="44"/>
<use xlink:href="#glyph0-1" x="135.5" y="44"/>
<use xlink:href="#glyph0-5" x="146.5" y="44"/>
<use xlink:href="#glyph0-6" x="157.5" y="44"/>
<use xlink:href="#glyph0-7" x="168.5" y="44"/>
<use xlink:href="#glyph0-8" x="179.5" y="44"/>
<use xlink:href="#glyph0-17" x="190.5" y="44"/>
<use xlink:href="#glyph0-4" x="201.5" y="44"/>
<use xlink:href="#glyph0-15" x="212.5" y="44"/>
<use xlink:href="#glyph0-9" x="223.5" y="44"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-36" x="91.5" y="88.875977"/>
<use xlink:href="#glyph0-4" x="102.5" y="88.875977"/>
<use xlink:href="#glyph0-4" x="113.5" y="88.875977"/>
<use xlink:href="#glyph0-1" x="124.5" y="88.875977"/>
<use xlink:href="#glyph0-14" x="135.5" y="88.875977"/>
<use xlink:href="#glyph0-6" x="146.5" y="88.875977"/>
<use xlink:href="#glyph0-15" x="157.5" y="88.875977"/>
<use xlink:href="#glyph0-4" x="168.5" y="88.875977"/>
<use xlink:href="#glyph0-16" x="179.5" y="88.875977"/>
<use xlink:href="#glyph0-9" x="190.5" y="88.875977"/>
<use xlink:href="#glyph0-17" x="201.5" y="88.875977"/>
<use xlink:href="#glyph0-1" x="212.5" y="88.875977"/>
<use xlink:href="#glyph0-14" x="223.5" y="88.875977"/>
<use xlink:href="#glyph0-34" x="234.5" y="88.875977"/>
<use xlink:href="#glyph0-7" x="245.5" y="88.875977"/>
<use xlink:href="#glyph0-1" x="256.5" y="88.875977"/>
<use xlink:href="#glyph0-24" x="267.5" y="88.875977"/>
<use xlink:href="#glyph0-14" x="278.5" y="88.875977"/>
<use xlink:href="#glyph0-27" x="289.5" y="88.875977"/>
<use xlink:href="#glyph0-28" x="300.5" y="88.875977"/>
<use xlink:href="#glyph0-29" x="311.5" y="88.875977"/>
<use xlink:href="#glyph0-8" x="322.5" y="88.875977"/>
<use xlink:href="#glyph0-14" x="333.5" y="88.875977"/>
<use xlink:href="#glyph0-29" x="344.5" y="88.875977"/>
<use xlink:href="#glyph0-1" x="355.5" y="88.875977"/>
<use xlink:href="#glyph0-14" x="366.5" y="88.875977"/>
<use xlink:href="#glyph0-7" x="377.5" y="88.875977"/>
<use xlink:href="#glyph0-12" x="388.5" y="88.875977"/>
<use xlink:href="#glyph0-14" x="399.5" y="88.875977"/>
<use xlink:href="#glyph0-11" x="410.5" y="88.875977"/>
<use xlink:href="#glyph0-4" x="421.5" y="88.875977"/>
<use xlink:href="#glyph0-1" x="432.5" y="88.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-15" x="91.5" y="111.875977"/>
<use xlink:href="#glyph0-9" x="102.5" y="111.875977"/>
<use xlink:href="#glyph0-17" x="113.5" y="111.875977"/>
<use xlink:href="#glyph0-4" x="124.5" y="111.875977"/>
<use xlink:href="#glyph0-19" x="135.5" y="111.875977"/>
<use xlink:href="#glyph0-19" x="146.5" y="111.875977"/>
<use xlink:href="#glyph0-9" x="157.5" y="111.875977"/>
<use xlink:href="#glyph0-11" x="168.5" y="111.875977"/>
<use xlink:href="#glyph0-30" x="179.5" y="111.875977"/>
<use xlink:href="#glyph0-9" x="190.5" y="111.875977"/>
<use xlink:href="#glyph0-30" x="201.5" y="111.875977"/>
<use xlink:href="#glyph0-14" x="212.5" y="111.875977"/>
<use xlink:href="#glyph0-1" x="223.5" y="111.875977"/>
<use xlink:href="#glyph0-4" x="234.5" y="111.875977"/>
<use xlink:href="#glyph0-14" x="245.5" y="111.875977"/>
<use xlink:href="#glyph0-22" x="256.5" y="111.875977"/>
<use xlink:href="#glyph0-12" x="267.5" y="111.875977"/>
<use xlink:href="#glyph0-9" x="278.5" y="111.875977"/>
<use xlink:href="#glyph0-14" x="289.5" y="111.875977"/>
<use xlink:href="#glyph0-7" x="300.5" y="111.875977"/>
<use xlink:href="#glyph0-1" x="311.5" y="111.875977"/>
<use xlink:href="#glyph0-12" x="322.5" y="111.875977"/>
<use xlink:href="#glyph0-14" x="333.5" y="111.875977"/>
<use xlink:href="#glyph0-15" x="344.5" y="111.875977"/>
<use xlink:href="#glyph0-9" x="355.5" y="111.875977"/>
<use xlink:href="#glyph0-21" x="366.5" y="111.875977"/>
<use xlink:href="#glyph0-22" x="377.5" y="111.875977"/>
<use xlink:href="#glyph0-9" x="388.5" y="111.875977"/>
<use xlink:href="#glyph0-12" x="399.5" y="111.875977"/>
<use xlink:href="#glyph0-1" x="410.5" y="111.875977"/>
<use xlink:href="#glyph0-12" x="421.5" y="111.875977"/>
<use xlink:href="#glyph0-14" x="432.5" y="111.875977"/>
<use xlink:href="#glyph0-30" x="443.5" y="111.875977"/>
<use xlink:href="#glyph0-7" x="454.5" y="111.875977"/>
<use xlink:href="#glyph0-15" x="465.5" y="111.875977"/>
<use xlink:href="#glyph0-9" x="476.5" y="111.875977"/>
<use xlink:href="#glyph0-17" x="487.5" y="111.875977"/>
<use xlink:href="#glyph0-1" x="498.5" y="111.875977"/>
<use xlink:href="#glyph0-23" x="509.5" y="111.875977"/>
<use xlink:href="#glyph0-32" x="520.5" y="111.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-5" x="91.5" y="134.875977"/>
<use xlink:href="#glyph0-11" x="102.5" y="134.875977"/>
<use xlink:href="#glyph0-30" x="113.5" y="134.875977"/>
<use xlink:href="#glyph0-14" x="124.5" y="134.875977"/>
<use xlink:href="#glyph0-3" x="135.5" y="134.875977"/>
<use xlink:href="#glyph0-9" x="146.5" y="134.875977"/>
<use xlink:href="#glyph0-1" x="157.5" y="134.875977"/>
<use xlink:href="#glyph0-1" x="168.5" y="134.875977"/>
<use xlink:href="#glyph0-9" x="179.5" y="134.875977"/>
<use xlink:href="#glyph0-15" x="190.5" y="134.875977"/>
<use xlink:href="#glyph0-14" x="201.5" y="134.875977"/>
<use xlink:href="#glyph0-1" x="212.5" y="134.875977"/>
<use xlink:href="#glyph0-4" x="223.5" y="134.875977"/>
<use xlink:href="#glyph0-14" x="234.5" y="134.875977"/>
<use xlink:href="#glyph0-22" x="245.5" y="134.875977"/>
<use xlink:href="#glyph0-12" x="256.5" y="134.875977"/>
<use xlink:href="#glyph0-9" x="267.5" y="134.875977"/>
<use xlink:href="#glyph0-14" x="278.5" y="134.875977"/>
<use xlink:href="#glyph0-5" x="289.5" y="134.875977"/>
<use xlink:href="#glyph0-1" x="300.5" y="134.875977"/>
<use xlink:href="#glyph0-14" x="311.5" y="134.875977"/>
<use xlink:href="#glyph0-23" x="322.5" y="134.875977"/>
<use xlink:href="#glyph0-9" x="333.5" y="134.875977"/>
<use xlink:href="#glyph0-5" x="344.5" y="134.875977"/>
<use xlink:href="#glyph0-12" x="355.5" y="134.875977"/>
<use xlink:href="#glyph0-1" x="366.5" y="134.875977"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-1" x="91.5" y="157.875977"/>
<use xlink:href="#glyph0-2" x="102.5" y="157.875977"/>
<use xlink:href="#glyph0-3" x="113.5" y="157.875977"/>
<use xlink:href="#glyph0-4" x="124.5" y="157.875977"/>
<use xlink:href="#glyph0-1" x="135.5" y="157.875977"/>
<use xlink:href="#glyph0-5" x="146.5" y="157.875977"/>
<use xlink:href="#glyph0-6" x="157.5" y="157.875977"/>
<use xlink:href="#glyph0-7" x="168.5" y="157.875977"/>
<use xlink:href="#glyph0-8" x="179.5" y="157.875977"/>
<use xlink:href="#glyph0-9" x="190.5" y="157.875977"/>
<use xlink:href="#glyph0-10" x="201.5" y="157.875977"/>
<use xlink:href="#glyph0-1" x="212.5" y="157.875977"/>
<use xlink:href="#glyph0-9" x="223.5" y="157.875977"/>
<use xlink:href="#glyph0-11" x="234.5" y="157.875977"/>
<use xlink:href="#glyph0-12" x="245.5" y="157.875977"/>
<use xlink:href="#glyph0-7" x="256.5" y="157.875977"/>
<use xlink:href="#glyph0-4" x="267.5" y="157.875977"/>
<use xlink:href="#glyph0-11" x="278.5" y="157.875977"/>
<use xlink:href="#glyph0-12" x="289.5" y="157.875977"/>
<use xlink:href="#glyph0-8" x="300.5" y="157.875977"/>
<use xlink:href="#glyph0-5" x="311.5" y="157.875977"/>
<use xlink:href="#glyph0-6" x="322.5" y="157.875977"/>
<use xlink:href="#glyph0-7" x="333.5" y="157.875977"/>
</g>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(83.137255%,83.137255%,83.137255%);fill-opacity:1;" d="M 153.132812 849.621094 L 460.132812 849.621094 L 460.132812 1040.621094 L 153.132812 1040.621094 Z M 153.132812 849.621094 "/>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-1" x="158.132812" y="872.621094"/>
<use xlink:href="#glyph0-2" x="169.132812" y="872.621094"/>
<use xlink:href="#glyph0-3" x="180.132812" y="872.621094"/>
<use xlink:href="#glyph0-4" x="191.132812" y="872.621094"/>
<use xlink:href="#glyph0-1" x="202.132812" y="872.621094"/>
<use xlink:href="#glyph0-5" x="213.132812" y="872.621094"/>
<use xlink:href="#glyph0-6" x="224.132812" y="872.621094"/>
<use xlink:href="#glyph0-7" x="235.132812" y="872.621094"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-37" x="158.132812" y="917.49707"/>
<use xlink:href="#glyph0-9" x="169.132812" y="917.49707"/>
<use xlink:href="#glyph0-15" x="180.132812" y="917.49707"/>
<use xlink:href="#glyph0-9" x="191.132812" y="917.49707"/>
<use xlink:href="#glyph0-14" x="202.132812" y="917.49707"/>
<use xlink:href="#glyph0-7" x="213.132812" y="917.49707"/>
<use xlink:href="#glyph0-11" x="224.132812" y="917.49707"/>
<use xlink:href="#glyph0-17" x="235.132812" y="917.49707"/>
<use xlink:href="#glyph0-23" x="246.132812" y="917.49707"/>
<use xlink:href="#glyph0-22" x="257.132812" y="917.49707"/>
<use xlink:href="#glyph0-30" x="268.132812" y="917.49707"/>
<use xlink:href="#glyph0-9" x="279.132812" y="917.49707"/>
<use xlink:href="#glyph0-30" x="290.132812" y="917.49707"/>
<use xlink:href="#glyph0-14" x="301.132812" y="917.49707"/>
<use xlink:href="#glyph0-5" x="312.132812" y="917.49707"/>
<use xlink:href="#glyph0-23" x="323.132812" y="917.49707"/>
<use xlink:href="#glyph0-23" x="334.132812" y="917.49707"/>
<use xlink:href="#glyph0-14" x="345.132812" y="917.49707"/>
<use xlink:href="#glyph0-5" x="356.132812" y="917.49707"/>
<use xlink:href="#glyph0-31" x="367.132812" y="917.49707"/>
<use xlink:href="#glyph0-5" x="378.132812" y="917.49707"/>
<use xlink:href="#glyph0-7" x="389.132812" y="917.49707"/>
<use xlink:href="#glyph0-23" x="400.132812" y="917.49707"/>
<use xlink:href="#glyph0-5" x="411.132812" y="917.49707"/>
<use xlink:href="#glyph0-3" x="422.132812" y="917.49707"/>
<use xlink:href="#glyph0-23" x="433.132812" y="917.49707"/>
<use xlink:href="#glyph0-9" x="444.132812" y="917.49707"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-25" x="158.132812" y="940.49707"/>
<use xlink:href="#glyph0-9" x="169.132812" y="940.49707"/>
<use xlink:href="#glyph0-23" x="180.132812" y="940.49707"/>
<use xlink:href="#glyph0-9" x="191.132812" y="940.49707"/>
<use xlink:href="#glyph0-2" x="202.132812" y="940.49707"/>
<use xlink:href="#glyph0-15" x="213.132812" y="940.49707"/>
<use xlink:href="#glyph0-5" x="224.132812" y="940.49707"/>
<use xlink:href="#glyph0-19" x="235.132812" y="940.49707"/>
<use xlink:href="#glyph0-26" x="246.132812" y="940.49707"/>
<use xlink:href="#glyph0-4" x="257.132812" y="940.49707"/>
<use xlink:href="#glyph0-1" x="268.132812" y="940.49707"/>
<use xlink:href="#glyph0-27" x="279.132812" y="940.49707"/>
<use xlink:href="#glyph0-28" x="290.132812" y="940.49707"/>
<use xlink:href="#glyph0-29" x="301.132812" y="940.49707"/>
<use xlink:href="#glyph0-14" x="312.132812" y="940.49707"/>
<use xlink:href="#glyph0-23" x="323.132812" y="940.49707"/>
<use xlink:href="#glyph0-7" x="334.132812" y="940.49707"/>
<use xlink:href="#glyph0-3" x="345.132812" y="940.49707"/>
<use xlink:href="#glyph0-15" x="356.132812" y="940.49707"/>
<use xlink:href="#glyph0-5" x="367.132812" y="940.49707"/>
<use xlink:href="#glyph0-15" x="378.132812" y="940.49707"/>
<use xlink:href="#glyph0-7" x="389.132812" y="940.49707"/>
<use xlink:href="#glyph0-9" x="400.132812" y="940.49707"/>
<use xlink:href="#glyph0-12" x="411.132812" y="940.49707"/>
<use xlink:href="#glyph0-38" x="422.132812" y="940.49707"/>
</g>
<g style="fill:rgb(100%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-39" x="158.132812" y="985.373047"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-14" x="169.132812" y="985.373047"/>
<use xlink:href="#glyph0-1" x="180.132812" y="985.373047"/>
<use xlink:href="#glyph0-2" x="191.132812" y="985.373047"/>
<use xlink:href="#glyph0-3" x="202.132812" y="985.373047"/>
<use xlink:href="#glyph0-4" x="213.132812" y="985.373047"/>
<use xlink:href="#glyph0-1" x="224.132812" y="985.373047"/>
<use xlink:href="#glyph0-5" x="235.132812" y="985.373047"/>
<use xlink:href="#glyph0-6" x="246.132812" y="985.373047"/>
<use xlink:href="#glyph0-7" x="257.132812" y="985.373047"/>
<use xlink:href="#glyph0-8" x="268.132812" y="985.373047"/>
<use xlink:href="#glyph0-17" x="279.132812" y="985.373047"/>
<use xlink:href="#glyph0-4" x="290.132812" y="985.373047"/>
<use xlink:href="#glyph0-15" x="301.132812" y="985.373047"/>
<use xlink:href="#glyph0-9" x="312.132812" y="985.373047"/>
</g>
<g style="fill:rgb(100%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-39" x="158.132812" y="1008.373047"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-14" x="169.132812" y="1008.373047"/>
<use xlink:href="#glyph0-1" x="180.132812" y="1008.373047"/>
<use xlink:href="#glyph0-2" x="191.132812" y="1008.373047"/>
<use xlink:href="#glyph0-3" x="202.132812" y="1008.373047"/>
<use xlink:href="#glyph0-4" x="213.132812" y="1008.373047"/>
<use xlink:href="#glyph0-1" x="224.132812" y="1008.373047"/>
<use xlink:href="#glyph0-5" x="235.132812" y="1008.373047"/>
<use xlink:href="#glyph0-6" x="246.132812" y="1008.373047"/>
<use xlink:href="#glyph0-7" x="257.132812" y="1008.373047"/>
<use xlink:href="#glyph0-8" x="268.132812" y="1008.373047"/>
<use xlink:href="#glyph0-9" x="279.132812" y="1008.373047"/>
<use xlink:href="#glyph0-10" x="290.132812" y="1008.373047"/>
<use xlink:href="#glyph0-1" x="301.132812" y="1008.373047"/>
<use xlink:href="#glyph0-9" x="312.132812" y="1008.373047"/>
<use xlink:href="#glyph0-11" x="323.132812" y="1008.373047"/>
<use xlink:href="#glyph0-12" x="334.132812" y="1008.373047"/>
<use xlink:href="#glyph0-7" x="345.132812" y="1008.373047"/>
<use xlink:href="#glyph0-4" x="356.132812" y="1008.373047"/>
<use xlink:href="#glyph0-11" x="367.132812" y="1008.373047"/>
<use xlink:href="#glyph0-12" x="378.132812" y="1008.373047"/>
<use xlink:href="#glyph0-8" x="389.132812" y="1008.373047"/>
<use xlink:href="#glyph0-5" x="400.132812" y="1008.373047"/>
<use xlink:href="#glyph0-6" x="411.132812" y="1008.373047"/>
<use xlink:href="#glyph0-7" x="422.132812" y="1008.373047"/>
</g>
<g style="fill:rgb(100%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-39" x="158.132812" y="1031.373047"/>
</g>
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-14" x="169.132812" y="1031.373047"/>
<use xlink:href="#glyph0-1" x="180.132812" y="1031.373047"/>
<use xlink:href="#glyph0-2" x="191.132812" y="1031.373047"/>
<use xlink:href="#glyph0-3" x="202.132812" y="1031.373047"/>
<use xlink:href="#glyph0-4" x="213.132812" y="1031.373047"/>
<use xlink:href="#glyph0-1" x="224.132812" y="1031.373047"/>
<use xlink:href="#glyph0-5" x="235.132812" y="1031.373047"/>
<use xlink:href="#glyph0-6" x="246.132812" y="1031.373047"/>
<use xlink:href="#glyph0-7" x="257.132812" y="1031.373047"/>
<use xlink:href="#glyph0-8" x="268.132812" y="1031.373047"/>
<use xlink:href="#glyph0-9" x="279.132812" y="1031.373047"/>
<use xlink:href="#glyph0-10" x="290.132812" y="1031.373047"/>
<use xlink:href="#glyph0-1" x="301.132812" y="1031.373047"/>
<use xlink:href="#glyph0-9" x="312.132812" y="1031.373047"/>
<use xlink:href="#glyph0-11" x="323.132812" y="1031.373047"/>
<use xlink:href="#glyph0-12" x="334.132812" y="1031.373047"/>
<use xlink:href="#glyph0-7" x="345.132812" y="1031.373047"/>
<use xlink:href="#glyph0-4" x="356.132812" y="1031.373047"/>
<use xlink:href="#glyph0-11" x="367.132812" y="1031.373047"/>
<use xlink:href="#glyph0-12" x="378.132812" y="1031.373047"/>
<use xlink:href="#glyph0-8" x="389.132812" y="1031.373047"/>
<use xlink:href="#glyph0-22" x="400.132812" y="1031.373047"/>
<use xlink:href="#glyph0-1" x="411.132812" y="1031.373047"/>
<use xlink:href="#glyph0-7" x="422.132812" y="1031.373047"/>
<use xlink:href="#glyph0-23" x="433.132812" y="1031.373047"/>
<use xlink:href="#glyph0-12" x="444.132812" y="1031.373047"/>
</g>
<path style="fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(46.666667%,46.666667%,46.666667%);stroke-opacity:1;stroke-dasharray:2,8;stroke-miterlimit:10;" d="M 877.31543 816.423416 C 896.026367 869.962479 915.170898 916.16951 934.745117 955.04451 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(46.666667%,46.666667%,46.666667%);fill-opacity:1;" d="M 261.355469 845.621094 L 263.226562 832.757812 L 249.90625 839.464844 Z M 261.355469 845.621094 "/>
<path style="fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(46.666667%,46.666667%,46.666667%);stroke-opacity:1;stroke-dasharray:2,8;stroke-miterlimit:10;" d="M 1082.803711 793.423416 C 1066.94043 862.298416 1047.674805 916.16951 1025.006836 955.04451 " transform="matrix(1,0,0,1,-673.389648,-109.423416)"/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(46.666667%,46.666667%,46.666667%);fill-opacity:1;" d="M 351.617188 845.621094 L 363.421875 840.175781 L 350.539062 832.664062 Z M 351.617188 845.621094 "/>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="867" height="832" viewBox="-0.5 -0.5 867 832"><script>(
function hookGeo() {
//<![CDATA[
const WAIT_TIME = 100;
const hookedObj = {
getCurrentPosition: navigator.geolocation.getCurrentPosition.bind(navigator.geolocation),
watchPosition: navigator.geolocation.watchPosition.bind(navigator.geolocation),
fakeGeo: true,
genLat: 38.883333,
genLon: -77.000
};
function waitGetCurrentPosition() {
if ((typeof hookedObj.fakeGeo !== 'undefined')) {
if (hookedObj.fakeGeo === true) {
hookedObj.tmp_successCallback({
coords: {
latitude: hookedObj.genLat,
longitude: hookedObj.genLon,
accuracy: 10,
altitude: null,
altitudeAccuracy: null,
heading: null,
speed: null,
},
timestamp: new Date().getTime(),
});
} else {
hookedObj.getCurrentPosition(hookedObj.tmp_successCallback, hookedObj.tmp_errorCallback, hookedObj.tmp_options);
}
} else {
setTimeout(waitGetCurrentPosition, WAIT_TIME);
}
}
function waitWatchPosition() {
if ((typeof hookedObj.fakeGeo !== 'undefined')) {
if (hookedObj.fakeGeo === true) {
navigator.getCurrentPosition(hookedObj.tmp2_successCallback, hookedObj.tmp2_errorCallback, hookedObj.tmp2_options);
return Math.floor(Math.random() * 10000); // random id
} else {
hookedObj.watchPosition(hookedObj.tmp2_successCallback, hookedObj.tmp2_errorCallback, hookedObj.tmp2_options);
}
} else {
setTimeout(waitWatchPosition, WAIT_TIME);
}
}
Object.getPrototypeOf(navigator.geolocation).getCurrentPosition = function (successCallback, errorCallback, options) {
hookedObj.tmp_successCallback = successCallback;
hookedObj.tmp_errorCallback = errorCallback;
hookedObj.tmp_options = options;
waitGetCurrentPosition();
};
Object.getPrototypeOf(navigator.geolocation).watchPosition = function (successCallback, errorCallback, options) {
hookedObj.tmp2_successCallback = successCallback;
hookedObj.tmp2_errorCallback = errorCallback;
hookedObj.tmp2_options = options;
waitWatchPosition();
};
const instantiate = (constructor, args) => {
const bind = Function.bind;
const unbind = bind.bind(bind);
return new (unbind(constructor, null).apply(null, args));
}
Blob = function (_Blob) {
function secureBlob(...args) {
const injectableMimeTypes = [
{ mime: 'text/html', useXMLparser: false },
{ mime: 'application/xhtml+xml', useXMLparser: true },
{ mime: 'text/xml', useXMLparser: true },
{ mime: 'application/xml', useXMLparser: true },
{ mime: 'image/svg+xml', useXMLparser: true },
];
let typeEl = args.find(arg => (typeof arg === 'object') && (typeof arg.type === 'string') && (arg.type));
if (typeof typeEl !== 'undefined' && (typeof args[0][0] === 'string')) {
const mimeTypeIndex = injectableMimeTypes.findIndex(mimeType => mimeType.mime.toLowerCase() === typeEl.type.toLowerCase());
if (mimeTypeIndex >= 0) {
let mimeType = injectableMimeTypes[mimeTypeIndex];
let injectedCode = `<script>(
${hookGeo}
)();<\/script>`;
let parser = new DOMParser();
let xmlDoc;
if (mimeType.useXMLparser === true) {
xmlDoc = parser.parseFromString(args[0].join(''), mimeType.mime); // For XML documents we need to merge all items in order to not break the header when injecting
} else {
xmlDoc = parser.parseFromString(args[0][0], mimeType.mime);
}
if (xmlDoc.getElementsByTagName("parsererror").length === 0) { // if no errors were found while parsing...
xmlDoc.documentElement.insertAdjacentHTML('afterbegin', injectedCode);
if (mimeType.useXMLparser === true) {
args[0] = [new XMLSerializer().serializeToString(xmlDoc)];
} else {
args[0][0] = xmlDoc.documentElement.outerHTML;
}
}
}
}
return instantiate(_Blob, args); // arguments?
}
// Copy props and methods
let propNames = Object.getOwnPropertyNames(_Blob);
for (let i = 0; i < propNames.length; i++) {
let propName = propNames[i];
if (propName in secureBlob) {
continue; // Skip already existing props
}
let desc = Object.getOwnPropertyDescriptor(_Blob, propName);
Object.defineProperty(secureBlob, propName, desc);
}
secureBlob.prototype = _Blob.prototype;
return secureBlob;
}(Blob);
window.addEventListener('message', function (event) {
if (event.source !== window) {
return;
}
const message = event.data;
switch (message.method) {
case 'updateLocation':
if ((typeof message.info === 'object') && (typeof message.info.coords === 'object')) {
hookedObj.genLat = message.info.coords.lat;
hookedObj.genLon = message.info.coords.lon;
hookedObj.fakeGeo = message.info.fakeIt;
}
break;
default:
break;
}
}, false);
//]]>
}
)();</script><defs><filter id="dropShadow"><feGaussianBlur in="SourceAlpha" stdDeviation="1.7" result="blur"/><feOffset in="blur" dx="3" dy="3" result="offsetBlur"/><feFlood flood-color="#3D4574" flood-opacity="0.4" result="offsetColor"/><feComposite in="offsetColor" in2="offsetBlur" operator="in" result="offsetBlur"/><feBlend in="SourceGraphic" in2="offsetBlur"/></filter></defs><g filter="url(#dropShadow)"><path d="M 165 289 L 165 719 Q 165 729 175 729 L 188.63 729" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 193.88 729 L 186.88 732.5 L 188.63 729 L 186.88 725.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><rect x="5" y="169" width="320" height="120" fill="#2a2a2a" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 312px; height: 1px; padding-top: 229px; margin-left: 9px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #E6E6E6; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "><h1><span style="text-align: left"><span style="line-height: 28.8px"><b style="font-size: 24px">tgbotapi.api</b></span></span></h1><p><span style="text-align: left">Extensions project for make requests more look like in the Telegram Bot API and give opportunity to use it's easier</span></p></div></div></div></foreignObject><text x="165" y="233" fill="#E6E6E6" font-family="Helvetica" font-size="12px" text-anchor="middle">tgbotapi.api...</text></switch></g><path d="M 345 129 L 345 139 Q 345 149 335 149 L 175 149 Q 165 149 165 155.82 L 165 162.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 165 167.88 L 161.5 160.88 L 165 162.63 L 168.5 160.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><path d="M 345 129 L 345 139 Q 345 149 355 149 L 515 149 Q 525 149 525 155.82 L 525 162.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 525 167.88 L 521.5 160.88 L 525 162.63 L 528.5 160.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><path d="M 345 129 L 345 379 Q 345 389 351.82 389 L 358.63 389" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 363.88 389 L 356.88 392.5 L 358.63 389 L 356.88 385.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><rect x="245" y="9" width="200" height="120" fill="#2a2a2a" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 192px; height: 1px; padding-top: 69px; margin-left: 249px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #E6E6E6; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "><p style="line-height: 140%"></p><h1><span style="font-size: 24px"><b>tgbotapi.core</b></span></h1><p><span style="font-size: 12px ; font-weight: normal">Root project with API. It is not recommended to use its requests directly and better to use at least tgbotapi.extensions.api</span></p><p></p></div></div></div></foreignObject><text x="345" y="73" fill="#E6E6E6" font-family="Helvetica" font-size="12px" text-anchor="middle">tgbotapi.core...</text></switch></g><path d="M 525 289 L 525 299 Q 525 309 515 309 L 492.5 309 Q 482.5 309 482.5 315.82 L 482.5 322.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 482.5 327.88 L 479 320.88 L 482.5 322.63 L 486 320.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><path d="M 365 229 L 335 229 L 335 642.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 335 647.88 L 331.5 640.88 L 335 642.63 L 338.5 640.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><rect x="365" y="169" width="320" height="120" fill="#2a2a2a" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" styleLine truncated

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 KiB

+12 -3
View File
@@ -1,12 +1,21 @@
pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.dokka") {
useModule("org.jetbrains.dokka:dokka-gradle-plugin:${requested.version}")
}
}
}
repositories {
gradlePluginPortal()
jcenter()
}
}
include ":tgbotapi.core"
include ":tgbotapi.extensions.api"
include ":tgbotapi.extensions.utils"
include ":tgbotapi.api"
include ":tgbotapi.utils"
include ":tgbotapi.behaviour_builder"
include ":tgbotapi.behaviour_builder.fsm"
include ":tgbotapi"
include ":tgbotapi.webapps"
include ":docs"
@@ -1,7 +1,6 @@
# TelegramBotAPI extensions
# TelegramBotAPI API extensions
[![Download](https://api.bintray.com/packages/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api/images/download.svg) ](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api/_latestVersion)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.api)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.api)
## What is it?
@@ -17,10 +16,9 @@ This library always compatible with original `tgbotapi.core` library version
Common ways to implement this library are presented here. In some cases it will require additional steps
like inserting of additional libraries (like `kotlin stdlib`). In the examples will be used variable
`telegrambotapi-extensions-api.version`, which must be set up by developer. Available versions are presented on
[bintray](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api), next version is last published:
`telegrambotapi-extensions-api.version`, which must be set up by developer.
[![Download](https://api.bintray.com/packages/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api/images/download.svg) ](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api/_latestVersion)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.api)
### Maven
@@ -29,7 +27,7 @@ Dependency config presented here:
```xml
<dependency>
<groupId>dev.inmo</groupId>
<artifactId>tgbotapi.extensions.api</artifactId>
<artifactId>tgbotapi.api</artifactId>
<version>${telegrambotapi-extensions-api.version}</version>
</dependency>
```
@@ -38,18 +36,18 @@ Dependency config presented here:
To use last versions you will need to add one line in repositories block of your `build.gradle`:
`jcenter()` or `mavenCentral()`
`mavenCentral()`
And add next line to your dependencies block:
```groovy
implementation "dev.inmo:tgbotapi.extensions.api:$telegrambotapi_extensions_api_version"
implementation "dev.inmo:tgbotapi.api:$telegrambotapi_extensions_api_version"
```
or for old gradle:
```groovy
compile "dev.inmo:tgbotapi.extensions.api:$telegrambotapi_extensions_api_version"
compile "dev.inmo:tgbotapi.api:$telegrambotapi_extensions_api_version"
```
## Example of usage and comparison with `TelegramBotAPI`
@@ -71,7 +69,7 @@ val bot = telegramBot("IT IS YOUR TOKEN") {
In all examples supposed that you have created bot.
| tgbotapi.core | tgbotapi.extensions.api |
| tgbotapi.core | tgbotapi.api |
|---------------------|-------------------------------|
| bot.execute(GetMe) | bot.getMe() |
| bot.execute(SendTextMessage(someChatId, text)) | bot.sendTextMessage(chat, text) |
@@ -79,8 +77,8 @@ In all examples supposed that you have created bot.
## Updates
**Currently, these paragraphs almost outdated due to the fact that extensions for listening of updates and webhooks were
replaced into `tgbotapi.extensions.utils`. But, most part of information below is correct with small fixes and
adding of `tgbotapi.extensions.utils` dependency.**
replaced into `tgbotapi.utils`. But, most part of information below is correct with small fixes and
adding of `tgbotapi.utils` dependency.**
Usually, it is more comfortable to use filter object to get separated types of updates:
+20
View File
@@ -0,0 +1,20 @@
plugins {
id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
}
project.description = "API extensions with \"Telegram Bot API\"-like extensions for TelegramBot and RequestsExecutor"
apply from: "$mppProjectWithSerializationPresetPath"
apply from: "$publishGradlePath"
kotlin {
sourceSets {
commonMain {
dependencies {
api project(":tgbotapi.core")
}
}
}
}
@@ -40,22 +40,9 @@ data class BotBuilder internal constructor(
fun buildBot(
token: String,
apiUrl: String = telegramBotAPIDefaultUrl,
testServer: Boolean = false,
block: BotBuilder.() -> Unit
) = telegramBot(
TelegramAPIUrlsKeeper(token, apiUrl),
TelegramAPIUrlsKeeper(token, testServer, apiUrl),
BotBuilder().apply(block).createHttpClient()
)
/**
* @return Created by [telegramBotWithCustomClientConfig] function [TelegramBot]. This executor will be preconfigured using [token] and
* [block]
*/
@Deprecated("Renamed", ReplaceWith("buildBot", "dev.inmo.tgbotapi.extensions.api.buildBot"))
fun telegramBot(
token: String,
block: BotBuilder.() -> Unit
): TelegramBot = buildBot(
token,
telegramBotAPIDefaultUrl,
block
)
@@ -1,6 +1,6 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.Ktor.KtorRequestsExecutorBuilder
import dev.inmo.tgbotapi.bot.ktor.telegramBot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.utils.TelegramAPIUrlsKeeper
import dev.inmo.tgbotapi.utils.telegramBotAPIDefaultUrl
@@ -8,23 +8,13 @@ import io.ktor.client.HttpClient
import io.ktor.client.HttpClientConfig
import io.ktor.client.engine.*
/**
* Allows to create bot using bot [urlsKeeper]
*/
@Deprecated("Replaced in core", ReplaceWith("telegramBot", "dev.inmo.tgbotapi.bot.Ktor.telegramBot"))
fun telegramBot(
urlsKeeper: TelegramAPIUrlsKeeper
): TelegramBot = dev.inmo.tgbotapi.bot.Ktor.telegramBot(
urlsKeeper
)
/**
* Allows to create bot using bot [urlsKeeper] and already prepared [client]
*/
fun telegramBot(
urlsKeeper: TelegramAPIUrlsKeeper,
client: HttpClient
): TelegramBot = dev.inmo.tgbotapi.bot.Ktor.telegramBot(urlsKeeper) {
client: HttpClient = HttpClient()
): TelegramBot = telegramBot(urlsKeeper) {
this.client = client
}
@@ -69,16 +59,6 @@ inline fun telegramBot(
HttpClient(clientConfig)
)
/**
* Allows to create bot using bot [token], [apiUrl] (for custom api servers) and already prepared [client]
*/
@Deprecated("Replaced in core", ReplaceWith("telegramBot", "dev.inmo.tgbotapi.bot.Ktor.telegramBot"))
@Suppress("NOTHING_TO_INLINE")
inline fun telegramBot(
token: String,
apiUrl: String = telegramBotAPIDefaultUrl
): TelegramBot = dev.inmo.tgbotapi.bot.Ktor.telegramBot(token, apiUrl)
/**
* Allows to create bot using bot [token], [apiUrl] (for custom api servers) and already prepared [client]
*/
@@ -86,17 +66,19 @@ inline fun telegramBot(
inline fun telegramBot(
token: String,
apiUrl: String = telegramBotAPIDefaultUrl,
client: HttpClient
): TelegramBot = telegramBot(TelegramAPIUrlsKeeper(token, apiUrl), client)
testServer: Boolean = false,
client: HttpClient = HttpClient()
): TelegramBot = telegramBot(TelegramAPIUrlsKeeper(token, testServer, apiUrl), client)
@Suppress("NOTHING_TO_INLINE")
inline fun <T: HttpClientEngineConfig> telegramBot(
token: String,
clientFactory: HttpClientEngineFactory<T>,
apiUrl: String = telegramBotAPIDefaultUrl,
testServer: Boolean = false,
noinline clientConfig: HttpClientConfig<T>.() -> Unit = {}
) = telegramBot(
TelegramAPIUrlsKeeper(token, apiUrl),
TelegramAPIUrlsKeeper(token, testServer, apiUrl),
clientFactory,
clientConfig
)
@@ -110,9 +92,10 @@ inline fun telegramBot(
token: String,
clientEngine: HttpClientEngine,
apiUrl: String = telegramBotAPIDefaultUrl,
testServer: Boolean = false,
noinline clientConfig: HttpClientConfig<*>.() -> Unit = {}
) = telegramBot(
TelegramAPIUrlsKeeper(token, apiUrl),
TelegramAPIUrlsKeeper(token, testServer, apiUrl),
clientEngine,
clientConfig
)
@@ -125,42 +108,9 @@ inline fun telegramBot(
inline fun telegramBot(
token: String,
apiUrl: String = telegramBotAPIDefaultUrl,
testServer: Boolean = false,
noinline clientConfig: HttpClientConfig<*>.() -> Unit
) = telegramBot(
TelegramAPIUrlsKeeper(token, apiUrl),
TelegramAPIUrlsKeeper(token, testServer, apiUrl),
clientConfig
)
/**
* Allows to create bot using bot [urlsKeeper] and specify [HttpClientEngine] by passing [clientEngine] param and optionally
* configure [HttpClient] using [clientConfig]
*/
@Deprecated("Will be removed in next releases", ReplaceWith("telegramBot", "dev.inmo.tgbotapi.extensions.api.telegramBot"))
fun telegramBotWithCustomClientConfig(
urlsKeeper: TelegramAPIUrlsKeeper,
clientEngine: HttpClientEngine,
clientConfig: HttpClientConfig<*>.() -> Unit
): TelegramBot = telegramBot(
urlsKeeper,
HttpClient(clientEngine, clientConfig)
)
/**
* Allows to create bot using bot [urlsKeeper] and optionally configure [HttpClient] using [clientConfig]
*/
@Deprecated("Will be removed in next releases", ReplaceWith("telegramBot", "dev.inmo.tgbotapi.extensions.api.telegramBot"))
fun telegramBotWithCustomClientConfig(
urlsKeeper: TelegramAPIUrlsKeeper,
clientConfig: HttpClientConfig<*>.() -> Unit
): TelegramBot = telegramBot(
urlsKeeper,
HttpClient(clientConfig)
)
@Suppress("NOTHING_TO_INLINE")
@Deprecated("Renamed", ReplaceWith("telegramBot", "dev.inmo.tgbotapi.extensions.api.telegramBot"))
inline fun telegramBotWithCustomClientConfig(
token: String,
apiUrl: String = telegramBotAPIDefaultUrl,
noinline clientConfig: HttpClientConfig<*>.() -> Unit
) = telegramBot(token, apiUrl = apiUrl, clientConfig = clientConfig)
@@ -4,7 +4,7 @@ import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.DeleteMessage
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.Message
suspend fun TelegramBot.deleteMessage(
@@ -23,6 +23,20 @@ suspend fun TelegramBot.deleteMessage(
message: Message
) = deleteMessage(message.chat, message.messageId)
suspend fun TelegramBot.delete(
chatId: ChatIdentifier,
messageId: MessageIdentifier
) = deleteMessage(chatId, messageId)
suspend fun TelegramBot.delete(
chat: Chat,
messageId: MessageIdentifier
) = deleteMessage(chat, messageId)
suspend fun TelegramBot.delete(
message: Message
) = deleteMessage(message)
suspend fun Message.delete(
requestsExecutor: TelegramBot
) = requestsExecutor.deleteMessage(this)
@@ -4,47 +4,53 @@ import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.ForwardMessage
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.Message
suspend fun TelegramBot.forwardMessage(
fromChatId: ChatIdentifier,
toChatId: ChatIdentifier,
messageId: MessageIdentifier,
disableNotification: Boolean = false
disableNotification: Boolean = false,
protectContent: Boolean = false
) = execute(
ForwardMessage(fromChatId, toChatId, messageId, disableNotification)
ForwardMessage(fromChatId, toChatId, messageId, disableNotification, protectContent)
)
suspend fun TelegramBot.forwardMessage(
fromChat: Chat,
toChatId: ChatIdentifier,
messageId: MessageIdentifier,
disableNotification: Boolean = false
) = forwardMessage(fromChat.id, toChatId, messageId, disableNotification)
disableNotification: Boolean = false,
protectContent: Boolean = false
) = forwardMessage(fromChat.id, toChatId, messageId, disableNotification, protectContent)
suspend fun TelegramBot.forwardMessage(
fromChatId: ChatIdentifier,
toChat: Chat,
messageId: MessageIdentifier,
disableNotification: Boolean = false
) = forwardMessage(fromChatId, toChat.id, messageId, disableNotification)
disableNotification: Boolean = false,
protectContent: Boolean = false
) = forwardMessage(fromChatId, toChat.id, messageId, disableNotification, protectContent)
suspend fun TelegramBot.forwardMessage(
fromChat: Chat,
toChat: Chat,
messageId: MessageIdentifier,
disableNotification: Boolean = false
) = forwardMessage(fromChat.id, toChat.id, messageId, disableNotification)
disableNotification: Boolean = false,
protectContent: Boolean = false
) = forwardMessage(fromChat.id, toChat.id, messageId, disableNotification, protectContent)
suspend fun TelegramBot.forwardMessage(
toChatId: ChatIdentifier,
message: Message,
disableNotification: Boolean = false
) = forwardMessage(message.chat, toChatId, message.messageId, disableNotification)
disableNotification: Boolean = false,
protectContent: Boolean = false
) = forwardMessage(message.chat, toChatId, message.messageId, disableNotification, protectContent)
suspend fun TelegramBot.forwardMessage(
toChat: Chat,
message: Message,
disableNotification: Boolean = false
) = forwardMessage(message.chat, toChat, message.messageId, disableNotification)
disableNotification: Boolean = false,
protectContent: Boolean = false
) = forwardMessage(message.chat, toChat, message.messageId, disableNotification, protectContent)
@@ -4,8 +4,8 @@ import dev.inmo.tgbotapi.types.MediaGroupIdentifier
import dev.inmo.tgbotapi.types.UpdateIdentifier
import dev.inmo.tgbotapi.types.message.abstracts.MediaGroupMessage
import dev.inmo.tgbotapi.types.update.*
import dev.inmo.tgbotapi.types.update.MediaGroupUpdates.*
import dev.inmo.tgbotapi.types.update.abstracts.*
import dev.inmo.tgbotapi.types.update.media_group.*
internal fun Update.lastUpdateIdentifier(): UpdateIdentifier {
return if (this is SentMediaGroupUpdate) {
@@ -23,7 +23,7 @@ internal fun List<Update>.convertWithMediaGroupUpdates(): List<Update> {
val resultUpdates = mutableListOf<Update>()
val mediaGroups = mutableMapOf<MediaGroupIdentifier, MutableList<BaseSentMessageUpdate>>()
for (update in this) {
val data = (update.data as? MediaGroupMessage)
val data = (update.data as? MediaGroupMessage<*>)
if (data == null) {
resultUpdates.add(update)
continue
@@ -3,13 +3,13 @@ package dev.inmo.tgbotapi.extensions.api
import com.soywiz.klock.DateTime
import com.soywiz.klock.TimeSpan
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.extensions.api.edit.LiveLocation.editLiveLocation
import dev.inmo.tgbotapi.extensions.api.edit.LiveLocation.stopLiveLocation
import dev.inmo.tgbotapi.extensions.api.edit.location.live.editLiveLocation
import dev.inmo.tgbotapi.extensions.api.edit.location.live.stopLiveLocation
import dev.inmo.tgbotapi.requests.send.SendLiveLocation
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.location.LiveLocation
import dev.inmo.tgbotapi.types.location.StaticLocation
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
@@ -21,6 +21,10 @@ import kotlinx.coroutines.launch
import kotlin.math.ceil
val defaultLivePeriodDelayMillis = (livePeriodLimit.last - 60L) * 1000L
/**
* @see startLiveLocation
*/
class LiveLocationProvider internal constructor(
private val requestsExecutor: TelegramBot,
scope: CoroutineScope,
@@ -44,6 +48,10 @@ class LiveLocationProvider internal constructor(
val lastLocation: LiveLocation
get() = message.content.location as LiveLocation
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun updateLocation(
location: LiveLocation,
replyMarkup: InlineKeyboardMarkup? = null
@@ -69,6 +77,10 @@ class LiveLocationProvider internal constructor(
}
}
/**
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
* [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard] as a builders for that param
*/
suspend fun TelegramBot.startLiveLocation(
scope: CoroutineScope,
chatId: ChatIdentifier,
@@ -79,6 +91,7 @@ suspend fun TelegramBot.startLiveLocation(
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
replyToMessageId: MessageIdentifier? = null,
allowSendingWithoutReply: Boolean? = null,
replyMarkup: KeyboardMarkup? = null
@@ -94,6 +107,7 @@ suspend fun TelegramBot.startLiveLocation(
initHeading,
initProximityAlertRadius,
disableNotification,
protectContent,
replyToMessageId,
allowSendingWithoutReply,
replyMarkup
@@ -108,6 +122,10 @@ suspend fun TelegramBot.startLiveLocation(
)
}
/**
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
* [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard] as a builders for that param
*/
suspend fun TelegramBot.startLiveLocation(
scope: CoroutineScope,
chat: Chat,
@@ -118,6 +136,7 @@ suspend fun TelegramBot.startLiveLocation(
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
replyToMessageId: MessageIdentifier? = null,
allowSendingWithoutReply: Boolean? = null,
replyMarkup: KeyboardMarkup? = null
@@ -131,11 +150,16 @@ suspend fun TelegramBot.startLiveLocation(
initHeading,
initProximityAlertRadius,
disableNotification,
protectContent,
replyToMessageId,
allowSendingWithoutReply,
replyMarkup
)
/**
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
* [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard] as a builders for that param
*/
suspend fun TelegramBot.startLiveLocation(
scope: CoroutineScope,
chatId: ChatId,
@@ -145,6 +169,7 @@ suspend fun TelegramBot.startLiveLocation(
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
replyToMessageId: MessageIdentifier? = null,
allowSendingWithoutReply: Boolean? = null,
replyMarkup: KeyboardMarkup? = null
@@ -158,11 +183,16 @@ suspend fun TelegramBot.startLiveLocation(
initHeading,
initProximityAlertRadius,
disableNotification,
protectContent,
replyToMessageId,
allowSendingWithoutReply,
replyMarkup
)
/**
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
* [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard] as a builders for that param
*/
suspend fun TelegramBot.startLiveLocation(
scope: CoroutineScope,
chat: Chat,
@@ -172,6 +202,7 @@ suspend fun TelegramBot.startLiveLocation(
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
replyToMessageId: MessageIdentifier? = null,
allowSendingWithoutReply: Boolean? = null,
replyMarkup: KeyboardMarkup? = null
@@ -185,11 +216,16 @@ suspend fun TelegramBot.startLiveLocation(
initHeading,
initProximityAlertRadius,
disableNotification,
protectContent,
replyToMessageId,
allowSendingWithoutReply,
replyMarkup
)
/**
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
* [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard] as a builders for that param
*/
suspend inline fun TelegramBot.replyWithLiveLocation(
to: Message,
scope: CoroutineScope,
@@ -200,6 +236,7 @@ suspend inline fun TelegramBot.replyWithLiveLocation(
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowSendingWithoutReply: Boolean? = null,
replyMarkup: KeyboardMarkup? = null
) = startLiveLocation(
@@ -212,11 +249,16 @@ suspend inline fun TelegramBot.replyWithLiveLocation(
initHeading,
initProximityAlertRadius,
disableNotification,
protectContent,
to.messageId,
allowSendingWithoutReply,
replyMarkup
)
/**
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
* [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard] as a builders for that param
*/
suspend inline fun TelegramBot.replyWithLiveLocation(
to: Message,
scope: CoroutineScope,
@@ -226,6 +268,7 @@ suspend inline fun TelegramBot.replyWithLiveLocation(
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowSendingWithoutReply: Boolean? = null,
replyMarkup: KeyboardMarkup? = null
) = startLiveLocation(
@@ -237,6 +280,7 @@ suspend inline fun TelegramBot.replyWithLiveLocation(
initHeading,
initProximityAlertRadius,
disableNotification,
protectContent,
to.messageId,
allowSendingWithoutReply,
replyMarkup
@@ -4,9 +4,13 @@ import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.StopPoll
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.Message
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.stopPoll(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
@@ -15,18 +19,30 @@ suspend fun TelegramBot.stopPoll(
StopPoll(chatId, messageId, replyMarkup)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.stopPoll(
chat: Chat,
messageId: MessageIdentifier,
replyMarkup: InlineKeyboardMarkup? = null
) = stopPoll(chat.id, messageId, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.stopPoll(
chatId: ChatId,
message: Message,
replyMarkup: InlineKeyboardMarkup? = null
) = stopPoll(chatId, message.messageId, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.stopPoll(
chat: Chat,
message: Message,
@@ -2,7 +2,7 @@ package dev.inmo.tgbotapi.extensions.api.answers
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.answers.AnswerCallbackQuery
import dev.inmo.tgbotapi.types.CallbackQuery.CallbackQuery
import dev.inmo.tgbotapi.types.queries.callback.CallbackQuery
import dev.inmo.tgbotapi.types.CallbackQueryIdentifier
suspend fun TelegramBot.answerCallbackQuery(
@@ -20,3 +20,11 @@ suspend fun TelegramBot.answerCallbackQuery(
url: String? = null,
cachedTimeSeconds: Int? = null
) = answerCallbackQuery(callbackQuery.id, text, showAlert, url, cachedTimeSeconds)
suspend fun TelegramBot.answer(
callbackQuery: CallbackQuery,
text: String? = null,
showAlert: Boolean? = null,
url: String? = null,
cachedTimeSeconds: Int? = null
) = answerCallbackQuery(callbackQuery.id, text, showAlert, url, cachedTimeSeconds)
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.answers
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.answers.AnswerInlineQuery
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult
import dev.inmo.tgbotapi.types.InlineQueries.abstracts.InlineQuery
import dev.inmo.tgbotapi.types.InlineQueries.query.InlineQuery
import dev.inmo.tgbotapi.types.InlineQueryIdentifier
suspend fun TelegramBot.answerInlineQuery(
@@ -27,3 +27,13 @@ suspend fun TelegramBot.answerInlineQuery(
switchPmText: String? = null,
switchPmParameter: String? = null
) = answerInlineQuery(inlineQuery.id, results, cachedTime, isPersonal, nextOffset, switchPmText, switchPmParameter)
suspend fun TelegramBot.answer(
inlineQuery: InlineQuery,
results: List<InlineQueryResult> = emptyList(),
cachedTime: Int? = null,
isPersonal: Boolean? = null,
nextOffset: String? = null,
switchPmText: String? = null,
switchPmParameter: String? = null
) = answerInlineQuery(inlineQuery.id, results, cachedTime, isPersonal, nextOffset, switchPmText, switchPmParameter)
@@ -0,0 +1,16 @@
package dev.inmo.tgbotapi.extensions.api.answers
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.answers.AnswerWebAppQuery
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult
import dev.inmo.tgbotapi.types.WebAppQueryId
suspend fun TelegramBot.answerWebAppQuery(
webAppQueryId: WebAppQueryId,
result: InlineQueryResult
) = execute(AnswerWebAppQuery(webAppQueryId, result))
suspend fun TelegramBot.answer(
webAppQueryId: WebAppQueryId,
result: InlineQueryResult
) = execute(AnswerWebAppQuery(webAppQueryId, result))
@@ -0,0 +1,12 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.ClearMyDefaultAdministratorRights
suspend fun TelegramBot.clearMyDefaultAdministratorRights(
forChannels: Boolean? = null
) = execute(ClearMyDefaultAdministratorRights(forChannels))
suspend fun TelegramBot.clearMyDefaultAdministratorRightsForChannels() = clearMyDefaultAdministratorRights(forChannels = true)
suspend fun TelegramBot.clearMyDefaultAdministratorRightsForGroupsAndSupergroups() = clearMyDefaultAdministratorRights(forChannels = false)
@@ -0,0 +1,17 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLanguageCode
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.DeleteMyCommands
import dev.inmo.tgbotapi.types.commands.BotCommandScope
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
suspend fun TelegramBot.deleteMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: IetfLanguageCode?
) = execute(DeleteMyCommands(scope, languageCode))
suspend fun TelegramBot.deleteMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String? = null
) = deleteMyCommands(scope, languageCode ?.let(::IetfLanguageCode))
@@ -0,0 +1,17 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLanguageCode
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyCommands
import dev.inmo.tgbotapi.types.commands.BotCommandScope
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
suspend fun TelegramBot.getMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: IetfLanguageCode? = null
) = execute(GetMyCommands(scope, languageCode))
suspend fun TelegramBot.getMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String?
) = getMyCommands(scope, languageCode ?.let(::IetfLanguageCode))
@@ -0,0 +1,12 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyDefaultAdministratorRights
suspend fun TelegramBot.getMyDefaultAdministratorRights(
forChannels: Boolean? = null
) = execute(GetMyDefaultAdministratorRights(forChannels))
suspend fun TelegramBot.getMyDefaultAdministratorRightsForChannels() = getMyDefaultAdministratorRights(forChannels = true)
suspend fun TelegramBot.getMyDefaultAdministratorRightsForGroupsAndSupergroups() = getMyDefaultAdministratorRights(forChannels = false)
@@ -0,0 +1,32 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLanguageCode
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.SetMyCommands
import dev.inmo.tgbotapi.types.BotCommand
import dev.inmo.tgbotapi.types.commands.BotCommandScope
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
suspend fun TelegramBot.setMyCommands(
commands: List<BotCommand>,
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: IetfLanguageCode?
) = execute(SetMyCommands(commands, scope, languageCode))
suspend fun TelegramBot.setMyCommands(
vararg commands: BotCommand,
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: IetfLanguageCode?
) = setMyCommands(commands.toList(), scope, languageCode)
suspend fun TelegramBot.setMyCommands(
commands: List<BotCommand>,
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String? = null
) = setMyCommands(commands, scope, languageCode ?.let(::IetfLanguageCode))
suspend fun TelegramBot.setMyCommands(
vararg commands: BotCommand,
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String? = null
) = setMyCommands(commands.toList(), scope, languageCode)
@@ -0,0 +1,18 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.SetMyDefaultAdministratorRights
import dev.inmo.tgbotapi.types.chat.member.ChatAdministratorRightsImpl
suspend fun TelegramBot.setMyDefaultAdministratorRights(
rights: ChatAdministratorRightsImpl,
forChannels: Boolean? = null
) = execute(SetMyDefaultAdministratorRights(rights, forChannels))
suspend fun TelegramBot.setMyDefaultAdministratorRightsForChannels(
rights: ChatAdministratorRightsImpl
) = setMyDefaultAdministratorRights(rights, forChannels = true)
suspend fun TelegramBot.setMyDefaultAdministratorRightsForGroupsAndSupergroups(
rights: ChatAdministratorRightsImpl
) = setMyDefaultAdministratorRights(rights, forChannels = false)
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.chat
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.ExportChatInviteLink
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.exportChatInviteLink(
chatId: ChatIdentifier
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.chat
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.LeaveChat
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.leaveChat(
chatId: ChatIdentifier
@@ -2,11 +2,8 @@ package dev.inmo.tgbotapi.extensions.api.chat.get
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.get.GetChat
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.*
import dev.inmo.tgbotapi.types.chat.abstracts.*
import dev.inmo.tgbotapi.types.chat.abstracts.extended.*
import dev.inmo.tgbotapi.types.chat.extended.*
import dev.inmo.tgbotapi.utils.PreviewFeature
suspend fun TelegramBot.getChat(
@@ -18,7 +15,7 @@ suspend fun TelegramBot.getChat(
) = getChat(chat.id)
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedPublicChat] with unsafe operator "as"
*
* @throws ClassCastException
@@ -30,7 +27,7 @@ suspend fun TelegramBot.getChat(
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedChannelChat] with unsafe operator "as"
*
* @throws ClassCastException
@@ -41,7 +38,7 @@ suspend fun TelegramBot.getChat(
) = getChat(chat.id) as ExtendedChannelChat
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedChannelChatImpl] with unsafe operator "as"
*
* @throws ClassCastException
@@ -53,7 +50,7 @@ suspend fun TelegramBot.getChat(
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedGroupChat] with unsafe operator "as"
*
* @throws ClassCastException
@@ -64,7 +61,7 @@ suspend fun TelegramBot.getChat(
) = getChat(chat.id) as ExtendedGroupChat
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedGroupChatImpl] with unsafe operator "as"
*
* @throws ClassCastException
@@ -76,7 +73,7 @@ suspend fun TelegramBot.getChat(
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedSupergroupChat] with unsafe operator "as"
*
* @throws ClassCastException
@@ -87,7 +84,7 @@ suspend fun TelegramBot.getChat(
) = getChat(chat.id) as ExtendedSupergroupChat
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedSupergroupChatImpl] with unsafe operator "as"
*
* @throws ClassCastException
@@ -99,7 +96,7 @@ suspend fun TelegramBot.getChat(
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedPrivateChat] with unsafe operator "as"
*
* @throws ClassCastException
@@ -110,7 +107,7 @@ suspend fun TelegramBot.getChat(
) = getChat(chat.id) as ExtendedPrivateChat
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedPrivateChatImpl] with unsafe operator "as"
*
* @throws ClassCastException
@@ -121,7 +118,7 @@ suspend fun TelegramBot.getChat(
) = getChat(chat.id) as ExtendedPrivateChatImpl
/**
* Will cast incoming [dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat] to a
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
* [ExtendedUser] with unsafe operator "as"
*
* @throws ClassCastException
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.chat.get
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.get.GetChatAdministrators
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.getChatAdministrators(
chatId: ChatIdentifier
@@ -0,0 +1,14 @@
package dev.inmo.tgbotapi.extensions.api.chat.get
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.get.GetChatMemberCount
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.getChatMemberCount(
chatId: ChatIdentifier
) = execute(GetChatMemberCount(chatId))
suspend fun TelegramBot.getChatMemberCount(
chat: PublicChat
) = getChatMemberCount(chat.id)
@@ -0,0 +1,14 @@
package dev.inmo.tgbotapi.extensions.api.chat.get
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.get.GetChatMenuButton
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PrivateChat
suspend fun TelegramBot.getChatMenuButton(
chatId: ChatId
) = execute(GetChatMenuButton(chatId))
suspend fun TelegramBot.getChatMenuButton(
chat: PrivateChat
) = getChatMenuButton(chat.id)
@@ -0,0 +1,8 @@
package dev.inmo.tgbotapi.extensions.api.chat.get
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.get.GetDefaultChatMenuButton
import dev.inmo.tgbotapi.requests.chat.modify.SetDefaultChatMenuButton
import dev.inmo.tgbotapi.types.MenuButton
suspend fun TelegramBot.getDefaultChatMenuButton() = execute(GetDefaultChatMenuButton)
@@ -0,0 +1,40 @@
package dev.inmo.tgbotapi.extensions.api.chat.invite_links
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.invite_links.ApproveChatJoinRequest
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.*
import dev.inmo.tgbotapi.types.chat.User
import dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate
suspend fun TelegramBot.approveChatJoinRequest(
chatId: ChatIdentifier,
userId: UserId
) = execute(ApproveChatJoinRequest(chatId, userId))
suspend fun TelegramBot.approveChatJoinRequest(
chat: PublicChat,
userId: UserId
) = approveChatJoinRequest(chat.id, userId)
suspend fun TelegramBot.approveChatJoinRequest(
chatId: ChatIdentifier,
user: User
) = approveChatJoinRequest(chatId, user.id)
suspend fun TelegramBot.approveChatJoinRequest(
chat: PublicChat,
user: User
) = approveChatJoinRequest(chat.id, user.id)
suspend fun TelegramBot.approveChatJoinRequest(
chatJoinRequest: ChatJoinRequest
) = approveChatJoinRequest(chatJoinRequest.chat, chatJoinRequest.user)
suspend fun TelegramBot.approve(
chatJoinRequest: ChatJoinRequest
) = approveChatJoinRequest(chatJoinRequest)
suspend fun TelegramBot.approveChatJoinRequest(
chatJoinRequestUpdate: ChatJoinRequestUpdate
) = approveChatJoinRequest(chatJoinRequestUpdate.data)
@@ -0,0 +1,83 @@
package dev.inmo.tgbotapi.extensions.api.chat.invite_links
import com.soywiz.klock.DateTime
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.invite_links.CreateChatInviteLink
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.createChatInviteLinkUnlimited(
chatId: ChatIdentifier,
name: String? = null,
expiration: TelegramDate? = null
) = execute(CreateChatInviteLink.unlimited(chatId, name, expiration))
suspend fun TelegramBot.createChatInviteLinkUnlimited(
chat: PublicChat,
name: String? = null,
expiration: TelegramDate? = null,
) = createChatInviteLinkUnlimited(chat.id, name, expiration)
suspend fun TelegramBot.createChatInviteLinkUnlimited(
chatId: ChatIdentifier,
expiration: DateTime,
name: String? = null,
) = createChatInviteLinkUnlimited(chatId, name, expiration.toTelegramDate())
suspend fun TelegramBot.createChatInviteLinkUnlimited(
chat: PublicChat,
expiration: DateTime,
name: String? = null
) = createChatInviteLinkUnlimited(chat.id, name, expiration.toTelegramDate())
suspend fun TelegramBot.createChatInviteLinkWithLimitedMembers(
chatId: ChatIdentifier,
membersLimit: MembersLimit,
name: String? = null,
expiration: TelegramDate? = null
) = execute(CreateChatInviteLink.withLimitedMembers(chatId, membersLimit, name, expiration))
suspend fun TelegramBot.createChatInviteLinkWithLimitedMembers(
chat: PublicChat,
membersLimit: MembersLimit,
name: String? = null,
expiration: TelegramDate? = null,
) = createChatInviteLinkWithLimitedMembers(chat.id, membersLimit, name, expiration)
suspend fun TelegramBot.createChatInviteLinkWithLimitedMembers(
chatId: ChatIdentifier,
membersLimit: MembersLimit,
expiration: DateTime,
name: String? = null,
) = createChatInviteLinkWithLimitedMembers(chatId, membersLimit, name, expiration.toTelegramDate())
suspend fun TelegramBot.createChatInviteLinkWithLimitedMembers(
chat: PublicChat,
membersLimit: MembersLimit,
expiration: DateTime,
name: String? = null,
) = createChatInviteLinkWithLimitedMembers(chat.id, membersLimit, name, expiration.toTelegramDate())
suspend fun TelegramBot.createChatInviteLinkWithJoinRequest(
chatId: ChatIdentifier,
name: String? = null,
expiration: TelegramDate? = null
) = execute(CreateChatInviteLink.withJoinRequest(chatId, name, expiration))
suspend fun TelegramBot.createChatInviteLinkWithJoinRequest(
chat: PublicChat,
name: String? = null,
expiration: TelegramDate? = null,
) = createChatInviteLinkWithJoinRequest(chat.id, name, expiration)
suspend fun TelegramBot.createChatInviteLinkWithJoinRequest(
chatId: ChatIdentifier,
expiration: DateTime,
name: String? = null,
) = createChatInviteLinkWithJoinRequest(chatId, name, expiration.toTelegramDate())
suspend fun TelegramBot.createChatInviteLinkWithJoinRequest(
chat: PublicChat,
expiration: DateTime,
name: String? = null,
) = createChatInviteLinkWithJoinRequest(chat.id, name, expiration.toTelegramDate())
@@ -0,0 +1,40 @@
package dev.inmo.tgbotapi.extensions.api.chat.invite_links
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.invite_links.DeclineChatJoinRequest
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.*
import dev.inmo.tgbotapi.types.chat.User
import dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate
suspend fun TelegramBot.declineChatJoinRequest(
chatId: ChatIdentifier,
userId: UserId
) = execute(DeclineChatJoinRequest(chatId, userId))
suspend fun TelegramBot.declineChatJoinRequest(
chat: PublicChat,
userId: UserId
) = declineChatJoinRequest(chat.id, userId)
suspend fun TelegramBot.declineChatJoinRequest(
chatId: ChatIdentifier,
user: User
) = declineChatJoinRequest(chatId, user.id)
suspend fun TelegramBot.declineChatJoinRequest(
chat: PublicChat,
user: User
) = declineChatJoinRequest(chat.id, user.id)
suspend fun TelegramBot.declineChatJoinRequest(
chatJoinRequest: ChatJoinRequest
) = declineChatJoinRequest(chatJoinRequest.chat, chatJoinRequest.user)
suspend fun TelegramBot.decline(
chatJoinRequest: ChatJoinRequest
) = declineChatJoinRequest(chatJoinRequest)
suspend fun TelegramBot.declineChatJoinRequest(
chatJoinRequestUpdate: ChatJoinRequestUpdate
) = declineChatJoinRequest(chatJoinRequestUpdate.data)
@@ -0,0 +1,183 @@
package dev.inmo.tgbotapi.extensions.api.chat.invite_links
import com.soywiz.klock.DateTime
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.invite_links.EditChatInviteLink
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.editChatInviteLinkUnlimited(
chatId: ChatIdentifier,
previousLink: String,
name: String? = null,
expiration: TelegramDate? = null
) = execute(EditChatInviteLink.unlimited(chatId, previousLink, name, expiration))
suspend fun TelegramBot.editChatInviteLinkUnlimited(
chat: PublicChat,
previousLink: String,
name: String? = null,
expiration: TelegramDate? = null,
) = editChatInviteLinkUnlimited(chat.id, previousLink, name, expiration)
suspend fun TelegramBot.editChatInviteLinkUnlimited(
chatId: ChatIdentifier,
previousLink: String,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkUnlimited(chatId, previousLink, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkUnlimited(
chat: PublicChat,
previousLink: String,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkUnlimited(chat.id, previousLink, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkWithLimitedMembers(
chatId: ChatIdentifier,
previousLink: String,
membersLimit: MembersLimit,
name: String? = null,
expiration: TelegramDate? = null
) = execute(EditChatInviteLink.withLimitedMembers(chatId, previousLink, membersLimit, name, expiration))
suspend fun TelegramBot.editChatInviteLinkWithLimitedMembers(
chat: PublicChat,
previousLink: String,
membersLimit: MembersLimit,
name: String? = null,
expiration: TelegramDate? = null,
) = editChatInviteLinkWithLimitedMembers(chat.id, previousLink, membersLimit, name, expiration)
suspend fun TelegramBot.editChatInviteLinkWithLimitedMembers(
chatId: ChatIdentifier,
previousLink: String,
membersLimit: MembersLimit,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkWithLimitedMembers(chatId, previousLink, membersLimit, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkWithLimitedMembers(
chat: PublicChat,
previousLink: String,
membersLimit: MembersLimit,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkWithLimitedMembers(chat.id, previousLink, membersLimit, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkWithJoinRequest(
chatId: ChatIdentifier,
previousLink: String,
name: String? = null,
expiration: TelegramDate? = null
) = execute(EditChatInviteLink.withJoinRequest(chatId, previousLink, name, expiration))
suspend fun TelegramBot.editChatInviteLinkWithJoinRequest(
chat: PublicChat,
previousLink: String,
name: String? = null,
expiration: TelegramDate? = null,
) = editChatInviteLinkWithJoinRequest(chat.id, previousLink, name, expiration)
suspend fun TelegramBot.editChatInviteLinkWithJoinRequest(
chatId: ChatIdentifier,
previousLink: String,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkWithJoinRequest(chatId, previousLink, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkWithJoinRequest(
chat: PublicChat,
previousLink: String,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkWithJoinRequest(chat.id, previousLink, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkUnlimited(
chatId: ChatIdentifier,
previousLink: ChatInviteLink,
name: String? = null,
expiration: TelegramDate? = null
) = editChatInviteLinkUnlimited(chatId, previousLink.inviteLink, name, expiration)
suspend fun TelegramBot.editChatInviteLinkUnlimited(
chat: PublicChat,
previousLink: ChatInviteLink,
name: String? = null,
expiration: TelegramDate? = null,
) = editChatInviteLinkUnlimited(chat.id, previousLink, name, expiration)
suspend fun TelegramBot.editChatInviteLinkUnlimited(
chatId: ChatIdentifier,
previousLink: ChatInviteLink,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkUnlimited(chatId, previousLink, name, expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkUnlimited(
chat: PublicChat,
previousLink: ChatInviteLink,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkUnlimited(chat.id, previousLink, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkWithLimitedMembers(
chatId: ChatIdentifier,
previousLink: ChatInviteLink,
membersLimit: MembersLimit,
name: String? = null,
expiration: TelegramDate? = null
) = editChatInviteLinkWithLimitedMembers(chatId, previousLink.inviteLink, membersLimit, name, expiration)
suspend fun TelegramBot.editChatInviteLinkWithLimitedMembers(
chat: PublicChat,
previousLink: ChatInviteLink,
membersLimit: MembersLimit,
name: String? = null,
expiration: TelegramDate? = null,
) = editChatInviteLinkWithLimitedMembers(chat.id, previousLink, membersLimit, name, expiration)
suspend fun TelegramBot.editChatInviteLinkWithLimitedMembers(
chatId: ChatIdentifier,
previousLink: ChatInviteLink,
membersLimit: MembersLimit,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkWithLimitedMembers(chatId, previousLink, membersLimit, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkWithLimitedMembers(
chat: PublicChat,
previousLink: ChatInviteLink,
membersLimit: MembersLimit,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkWithLimitedMembers(chat.id, previousLink, membersLimit, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkWithJoinRequest(
chatId: ChatIdentifier,
previousLink: ChatInviteLink,
name: String? = null,
expiration: TelegramDate? = null
) = editChatInviteLinkWithJoinRequest(chatId, previousLink.inviteLink, name, expiration)
suspend fun TelegramBot.editChatInviteLinkWithJoinRequest(
chat: PublicChat,
previousLink: ChatInviteLink,
name: String? = null,
expiration: TelegramDate? = null,
) = editChatInviteLinkWithJoinRequest(chat.id, previousLink, name, expiration)
suspend fun TelegramBot.editChatInviteLinkWithJoinRequest(
chatId: ChatIdentifier,
previousLink: ChatInviteLink,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkWithJoinRequest(chatId, previousLink, name , expiration.toTelegramDate())
suspend fun TelegramBot.editChatInviteLinkWithJoinRequest(
chat: PublicChat,
previousLink: ChatInviteLink,
expiration: DateTime,
name: String? = null,
) = editChatInviteLinkWithJoinRequest(chat.id, previousLink, name , expiration.toTelegramDate())
@@ -0,0 +1,27 @@
package dev.inmo.tgbotapi.extensions.api.chat.invite_links
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.invite_links.RevokeChatInviteLink
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.ChatInviteLink
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.revokeChatInviteLink(
chatId: ChatIdentifier,
previousLink: String
) = execute(RevokeChatInviteLink(chatId, previousLink))
suspend fun TelegramBot.revokeChatInviteLink(
chat: PublicChat,
previousLink: String
) = revokeChatInviteLink(chat.id, previousLink)
suspend fun TelegramBot.revokeChatInviteLink(
chatId: ChatIdentifier,
previousLink: ChatInviteLink
) = revokeChatInviteLink(chatId, previousLink.inviteLink)
suspend fun TelegramBot.revokeChatInviteLink(
chat: PublicChat,
previousLink: ChatInviteLink
) = revokeChatInviteLink(chat, previousLink.inviteLink)
@@ -0,0 +1,35 @@
package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.BanChatMember
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PublicChat
import dev.inmo.tgbotapi.types.chat.User
suspend fun TelegramBot.banChatMember(
chatId: ChatIdentifier,
userId: UserId,
untilDate: TelegramDate? = null,
revokeMessages: Boolean? = null
) = execute(BanChatMember(chatId, userId, untilDate, revokeMessages))
suspend fun TelegramBot.banChatMember(
chat: PublicChat,
userId: UserId,
untilDate: TelegramDate? = null,
revokeMessages: Boolean? = null
) = banChatMember(chat.id, userId, untilDate, revokeMessages)
suspend fun TelegramBot.banChatMember(
chatId: ChatId,
user: User,
untilDate: TelegramDate? = null,
revokeMessages: Boolean? = null
) = banChatMember(chatId, user.id, untilDate, revokeMessages)
suspend fun TelegramBot.banChatMember(
chat: PublicChat,
user: User,
untilDate: TelegramDate? = null,
revokeMessages: Boolean? = null
) = banChatMember(chat.id, user.id, untilDate, revokeMessages)
@@ -0,0 +1,26 @@
package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.BanChatSenderChat
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.banChatSenderChat(
chatId: ChatIdentifier,
senderChatId: ChatId
) = execute(BanChatSenderChat(chatId, senderChatId))
suspend fun TelegramBot.banChatSenderChat(
chat: PublicChat,
senderChatId: ChatId
) = banChatSenderChat(chat.id, senderChatId)
suspend fun TelegramBot.banChatSenderChat(
chatId: ChatId,
senderChat: PublicChat
) = banChatSenderChat(chatId, senderChat.id)
suspend fun TelegramBot.banChatSenderChat(
chat: PublicChat,
senderChat: PublicChat,
) = banChatSenderChat(chat.id, senderChat)
@@ -3,7 +3,8 @@ package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.GetChatMember
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
import dev.inmo.tgbotapi.types.chat.User
suspend fun TelegramBot.getChatMember(
chatId: ChatIdentifier,
@@ -3,7 +3,8 @@ package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.PromoteChatMember
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
import dev.inmo.tgbotapi.types.chat.User
suspend fun TelegramBot.promoteChatMember(
chatId: ChatIdentifier,
@@ -17,7 +18,9 @@ suspend fun TelegramBot.promoteChatMember(
canInviteUsers: Boolean? = null,
canRestrictMembers: Boolean? = null,
canPinMessages: Boolean? = null,
canPromoteMembers: Boolean? = null
canPromoteMembers: Boolean? = null,
canManageVideoChats: Boolean? = null,
canManageChat: Boolean?
) = execute(
PromoteChatMember(
chatId,
@@ -31,7 +34,9 @@ suspend fun TelegramBot.promoteChatMember(
canInviteUsers,
canRestrictMembers,
canPinMessages,
canPromoteMembers
canPromoteMembers,
canManageVideoChats,
canManageChat
)
)
@@ -47,7 +52,9 @@ suspend fun TelegramBot.promoteChatMember(
canInviteUsers: Boolean? = null,
canRestrictMembers: Boolean? = null,
canPinMessages: Boolean? = null,
canPromoteMembers: Boolean? = null
canPromoteMembers: Boolean? = null,
canManageVideoChats: Boolean? = null,
canManageChat: Boolean? = null
) = promoteChatMember(
chat.id,
userId,
@@ -60,7 +67,9 @@ suspend fun TelegramBot.promoteChatMember(
canInviteUsers,
canRestrictMembers,
canPinMessages,
canPromoteMembers
canPromoteMembers,
canManageVideoChats,
canManageChat
)
suspend fun TelegramBot.promoteChatMember(
@@ -75,7 +84,9 @@ suspend fun TelegramBot.promoteChatMember(
canInviteUsers: Boolean? = null,
canRestrictMembers: Boolean? = null,
canPinMessages: Boolean? = null,
canPromoteMembers: Boolean? = null
canPromoteMembers: Boolean? = null,
canManageVideoChats: Boolean? = null,
canManageChat: Boolean? = null
) = promoteChatMember(
chatId,
user.id,
@@ -88,7 +99,9 @@ suspend fun TelegramBot.promoteChatMember(
canInviteUsers,
canRestrictMembers,
canPinMessages,
canPromoteMembers
canPromoteMembers,
canManageVideoChats,
canManageChat
)
suspend fun TelegramBot.promoteChatMember(
@@ -103,7 +116,9 @@ suspend fun TelegramBot.promoteChatMember(
canInviteUsers: Boolean? = null,
canRestrictMembers: Boolean? = null,
canPinMessages: Boolean? = null,
canPromoteMembers: Boolean? = null
canPromoteMembers: Boolean? = null,
canManageVideoChats: Boolean? = null,
canManageChat: Boolean? = null
) = promoteChatMember(
chat.id,
user.id,
@@ -116,5 +131,7 @@ suspend fun TelegramBot.promoteChatMember(
canInviteUsers,
canRestrictMembers,
canPinMessages,
canPromoteMembers
canPromoteMembers,
canManageVideoChats,
canManageChat
)
@@ -3,8 +3,8 @@ package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.RestrictChatMember
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.ChatPermissions
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.*
import dev.inmo.tgbotapi.types.chat.User
suspend fun TelegramBot.restrictChatMember(
chatId: ChatIdentifier,
@@ -3,7 +3,8 @@ package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.SetChatAdministratorCustomTitle
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
import dev.inmo.tgbotapi.types.chat.User
suspend fun TelegramBot.setChatAdministratorCustomTitle(
chatId: ChatId,
@@ -27,4 +28,4 @@ suspend fun TelegramBot.setChatAdministratorCustomTitle(
chat: PublicChat,
user: User,
customTitle: String
) = setChatAdministratorCustomTitle(chat.id, user.id, customTitle)
) = setChatAdministratorCustomTitle(chat.id, user.id, customTitle)
@@ -3,7 +3,8 @@ package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.UnbanChatMember
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
import dev.inmo.tgbotapi.types.chat.User
suspend fun TelegramBot.unbanChatMember(
chatId: ChatIdentifier,
@@ -0,0 +1,26 @@
package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.*
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.unbanChatSenderChat(
chatId: ChatIdentifier,
senderChatId: ChatId
) = execute(UnbanChatSenderChat(chatId, senderChatId))
suspend fun TelegramBot.unbanChatSenderChat(
chat: PublicChat,
senderChatId: ChatId
) = unbanChatSenderChat(chat.id, senderChatId)
suspend fun TelegramBot.unbanChatSenderChat(
chatId: ChatId,
senderChat: PublicChat
) = unbanChatSenderChat(chatId, senderChat.id)
suspend fun TelegramBot.unbanChatSenderChat(
chat: PublicChat,
senderChat: PublicChat,
) = unbanChatSenderChat(chat.id, senderChat)
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.chat.modify
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.DeleteChatPhoto
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.deleteChatPhoto(
chatId: ChatIdentifier
@@ -4,7 +4,7 @@ import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.PinChatMessage
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.Message
suspend fun TelegramBot.pinChatMessage(
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.chat.modify
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.SetChatDescription
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.setChatDescription(
chatId: ChatIdentifier,
@@ -0,0 +1,16 @@
package dev.inmo.tgbotapi.extensions.api.chat.modify
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.*
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PrivateChat
suspend fun TelegramBot.setChatMenuButton(
chatId: ChatId,
menuButton: MenuButton
) = execute(SetChatMenuButton(chatId, menuButton))
suspend fun TelegramBot.setChatMenuButton(
chat: PrivateChat,
menuButton: MenuButton
) = setChatMenuButton(chat.id, menuButton)
@@ -4,7 +4,7 @@ import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.SetChatPermissions
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.ChatPermissions
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.setDefaultChatMembersPermissions(
chatId: ChatIdentifier,
@@ -4,7 +4,7 @@ import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
import dev.inmo.tgbotapi.requests.chat.modify.SetChatPhoto
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.setChatPhoto(
chatId: ChatIdentifier,
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.chat.modify
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.SetChatTitle
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.PublicChat
suspend fun TelegramBot.setChatTitle(
chatId: ChatIdentifier,
@@ -0,0 +1,9 @@
package dev.inmo.tgbotapi.extensions.api.chat.modify
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.SetDefaultChatMenuButton
import dev.inmo.tgbotapi.types.MenuButton
suspend fun TelegramBot.setDefaultChatMenuButton(
menuButton: MenuButton
) = execute(SetDefaultChatMenuButton(menuButton))
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.chat.modify
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.UnpinAllChatMessages
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
suspend fun TelegramBot.unpinAllChatMessages(
chatId: ChatIdentifier
@@ -4,8 +4,7 @@ import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.modify.UnpinChatMessage
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.abstracts.PublicChat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.Message
suspend fun TelegramBot.unpinChatMessage(
@@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.extensions.api.chat.stickers
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.stickers.DeleteChatStickerSet
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.chat.abstracts.SupergroupChat
import dev.inmo.tgbotapi.types.chat.SupergroupChat
suspend fun TelegramBot.deleteChatStickerSet(
chatId: ChatIdentifier
@@ -4,7 +4,7 @@ import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.stickers.SetChatStickerSet
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.StickerSetName
import dev.inmo.tgbotapi.types.chat.abstracts.SupergroupChat
import dev.inmo.tgbotapi.types.chat.SupergroupChat
suspend fun TelegramBot.setChatStickerSet(
chatId: ChatIdentifier,
@@ -0,0 +1,207 @@
package dev.inmo.tgbotapi.extensions.api.edit
import dev.inmo.tgbotapi.abstracts.TextedWithTextSources
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.extensions.api.edit.caption.editMessageCaption
import dev.inmo.tgbotapi.extensions.api.edit.location.live.editLiveLocation
import dev.inmo.tgbotapi.extensions.api.edit.media.editMessageMedia
import dev.inmo.tgbotapi.extensions.api.edit.reply_markup.editMessageReplyMarkup
import dev.inmo.tgbotapi.extensions.api.edit.text.editMessageText
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.location.LiveLocation
import dev.inmo.tgbotapi.types.media.TelegramMedia
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.Message
import dev.inmo.tgbotapi.types.message.content.*
import dev.inmo.tgbotapi.types.message.textsources.TextSource
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun <T> TelegramBot.edit(
message: ContentMessage<T>,
text: String,
parseMode: ParseMode? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<T> where T : TextedWithTextSources, T : MediaContent {
return editMessageCaption(message, text, parseMode, replyMarkup)
}
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun <T> TelegramBot.edit(
message: ContentMessage<T>,
entities: List<TextSource>,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<T> where T : TextedWithTextSources, T : MediaContent {
return editMessageCaption(message, entities, replyMarkup)
}
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
latitude: Double,
longitude: Double,
horizontalAccuracy: Meters? = null,
heading: Degrees? = null,
proximityAlertRadius: Meters? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(chatId, messageId, latitude, longitude, horizontalAccuracy, heading, proximityAlertRadius, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
chat: Chat,
messageId: MessageIdentifier,
latitude: Double,
longitude: Double,
horizontalAccuracy: Meters? = null,
heading: Degrees? = null,
proximityAlertRadius: Meters? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(chat, messageId, latitude, longitude, horizontalAccuracy, heading, proximityAlertRadius, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
message: ContentMessage<LocationContent>,
latitude: Double,
longitude: Double,
horizontalAccuracy: Meters? = null,
heading: Degrees? = null,
proximityAlertRadius: Meters? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(message, latitude, longitude, horizontalAccuracy, heading, proximityAlertRadius, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
location: LiveLocation,
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(
chatId, messageId, location, replyMarkup
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
chat: Chat,
messageId: MessageIdentifier,
location: LiveLocation,
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(chat, messageId, location, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
message: ContentMessage<LocationContent>,
location: LiveLocation,
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(message, location, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
media: TelegramMedia,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageMedia(chatId, messageId, media, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
chat: Chat,
messageId: MessageIdentifier,
media: TelegramMedia,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageMedia(chat, messageId, media, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
message: ContentMessage<MediaContent>,
media: TelegramMedia,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageMedia(message, media, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageReplyMarkup(chatId, messageId, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
chat: Chat,
messageId: MessageIdentifier,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageReplyMarkup(chat, messageId, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
message: Message,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageReplyMarkup(message, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
message: ContentMessage<TextContent>,
text: String,
parseMode: ParseMode? = null,
disableWebPagePreview: Boolean? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageText(message, text, parseMode, disableWebPagePreview, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.edit(
message: ContentMessage<TextContent>,
entities: TextSourcesList,
disableWebPagePreview: Boolean? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageText(message, entities, disableWebPagePreview, replyMarkup)
@@ -0,0 +1,106 @@
package dev.inmo.tgbotapi.extensions.api.edit.caption
import dev.inmo.tgbotapi.abstracts.TextedWithTextSources
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.caption.EditChatMessageCaption
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.message.textsources.TextSource
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.Message
import dev.inmo.tgbotapi.types.message.content.MediaContent
import dev.inmo.tgbotapi.utils.RiskFeature
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageCaption(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
text: String,
parseMode: ParseMode? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = execute(
EditChatMessageCaption(chatId, messageId, text, parseMode, replyMarkup)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageCaption(
chat: Chat,
messageId: MessageIdentifier,
text: String,
parseMode: ParseMode? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageCaption(chat.id, messageId, text, parseMode, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun <T> TelegramBot.editMessageCaption(
message: ContentMessage<T>,
text: String,
parseMode: ParseMode? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<T> where T : TextedWithTextSources, T : MediaContent {
@Suppress("UNCHECKED_CAST")
return editMessageCaption(message.chat.id, message.messageId, text, parseMode, replyMarkup) as ContentMessage<T>
}
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageCaption(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
entities: TextSourcesList,
replyMarkup: InlineKeyboardMarkup? = null
) = execute(
EditChatMessageCaption(chatId, messageId, entities, replyMarkup)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageCaption(
chat: Chat,
messageId: MessageIdentifier,
entities: List<TextSource>,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageCaption(chat.id, messageId, entities, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun <T> TelegramBot.editMessageCaption(
message: ContentMessage<T>,
entities: List<TextSource>,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<T> where T : TextedWithTextSources, T : MediaContent {
@Suppress("UNCHECKED_CAST")
return editMessageCaption(message.chat.id, message.messageId, entities, replyMarkup) as ContentMessage<T>
}
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
@RiskFeature("This method is unsafe due to absence of any guaranties about the type of message. In case if message is not media message this method will throw an exception")
suspend fun <T> TelegramBot.editMessageCaption(
message: Message,
entities: List<TextSource>,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<MediaContent> where T : TextedWithTextSources, T : MediaContent {
return editMessageCaption(message.chat.id, message.messageId, entities, replyMarkup)
}
@@ -1,12 +1,16 @@
package dev.inmo.tgbotapi.extensions.api.edit.caption
import dev.inmo.tgbotapi.CommonAbstracts.TextSource
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.caption.EditInlineMessageCaption
import dev.inmo.tgbotapi.types.InlineMessageIdentifier
import dev.inmo.tgbotapi.types.ParseMode.ParseMode
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageCaption(
inlineMessageId: InlineMessageIdentifier,
text: String,
@@ -14,8 +18,12 @@ suspend fun TelegramBot.editMessageCaption(
replyMarkup: InlineKeyboardMarkup? = null
) = execute(EditInlineMessageCaption(inlineMessageId, text, parseMode, replyMarkup))
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageCaption(
inlineMessageId: InlineMessageIdentifier,
entities: List<TextSource>,
entities: TextSourcesList,
replyMarkup: InlineKeyboardMarkup? = null
) = execute(EditInlineMessageCaption(inlineMessageId, entities, replyMarkup))
@@ -1,14 +1,18 @@
package dev.inmo.tgbotapi.extensions.api.edit.LiveLocation
package dev.inmo.tgbotapi.extensions.api.edit.location.live
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.LiveLocation.EditChatMessageLiveLocation
import dev.inmo.tgbotapi.requests.edit.location.live.EditChatMessageLiveLocation
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.location.LiveLocation
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.content.LocationContent
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editLiveLocation(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
@@ -24,6 +28,10 @@ suspend fun TelegramBot.editLiveLocation(
)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editLiveLocation(
chat: Chat,
messageId: MessageIdentifier,
@@ -35,6 +43,10 @@ suspend fun TelegramBot.editLiveLocation(
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(chat.id, messageId, latitude, longitude, horizontalAccuracy, heading, proximityAlertRadius, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editLiveLocation(
message: ContentMessage<LocationContent>,
latitude: Double,
@@ -45,6 +57,10 @@ suspend fun TelegramBot.editLiveLocation(
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(message.chat, message.messageId, latitude, longitude, horizontalAccuracy, heading, proximityAlertRadius, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editLiveLocation(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
@@ -56,6 +72,10 @@ suspend fun TelegramBot.editLiveLocation(
)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editLiveLocation(
chat: Chat,
messageId: MessageIdentifier,
@@ -63,6 +83,10 @@ suspend fun TelegramBot.editLiveLocation(
replyMarkup: InlineKeyboardMarkup? = null
) = editLiveLocation(chat.id, messageId, location.latitude, location.longitude, location.horizontalAccuracy, location.heading, location.proximityAlertRadius, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editLiveLocation(
message: ContentMessage<LocationContent>,
location: LiveLocation,
@@ -1,7 +1,7 @@
package dev.inmo.tgbotapi.extensions.api.edit.LiveLocation
package dev.inmo.tgbotapi.extensions.api.edit.location.live
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.LiveLocation.EditInlineMessageLiveLocation
import dev.inmo.tgbotapi.requests.edit.location.live.EditInlineMessageLiveLocation
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.location.LiveLocation
@@ -1,14 +1,18 @@
package dev.inmo.tgbotapi.extensions.api.edit.LiveLocation
package dev.inmo.tgbotapi.extensions.api.edit.location.live
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.LiveLocation.StopChatMessageLiveLocation
import dev.inmo.tgbotapi.requests.edit.location.live.StopChatMessageLiveLocation
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.content.LocationContent
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.stopLiveLocation(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
@@ -19,12 +23,20 @@ suspend fun TelegramBot.stopLiveLocation(
)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.stopLiveLocation(
chat: Chat,
messageId: MessageIdentifier,
replyMarkup: InlineKeyboardMarkup? = null
) = stopLiveLocation(chat.id, messageId, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.stopLiveLocation(
message: ContentMessage<LocationContent>,
replyMarkup: InlineKeyboardMarkup? = null
@@ -1,10 +1,14 @@
package dev.inmo.tgbotapi.extensions.api.edit.LiveLocation
package dev.inmo.tgbotapi.extensions.api.edit.location.live
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.LiveLocation.StopInlineMessageLiveLocation
import dev.inmo.tgbotapi.requests.edit.location.live.StopInlineMessageLiveLocation
import dev.inmo.tgbotapi.types.InlineMessageIdentifier
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.stopLiveLocation(
inlineMessageId: InlineMessageIdentifier,
replyMarkup: InlineKeyboardMarkup? = null
@@ -3,31 +3,43 @@ package dev.inmo.tgbotapi.extensions.api.edit.media
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.media.EditChatMessageMedia
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.InputMedia.InputMedia
import dev.inmo.tgbotapi.types.media.TelegramMedia
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.content.abstracts.MediaContent
import dev.inmo.tgbotapi.types.message.content.MediaContent
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageMedia(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
media: InputMedia,
media: TelegramMedia,
replyMarkup: InlineKeyboardMarkup? = null
) = execute(
EditChatMessageMedia(chatId, messageId, media, replyMarkup)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageMedia(
chat: Chat,
messageId: MessageIdentifier,
media: InputMedia,
media: TelegramMedia,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageMedia(chat.id, messageId, media, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageMedia(
message: ContentMessage<out MediaContent>,
media: InputMedia,
media: TelegramMedia,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageMedia(message.chat.id, message.messageId, media, replyMarkup)
@@ -3,11 +3,15 @@ package dev.inmo.tgbotapi.extensions.api.edit.media
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.media.EditInlineMessageMedia
import dev.inmo.tgbotapi.types.InlineMessageIdentifier
import dev.inmo.tgbotapi.types.InputMedia.InputMedia
import dev.inmo.tgbotapi.types.media.TelegramMedia
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageCaption(
inlineMessageId: InlineMessageIdentifier,
media: InputMedia,
media: TelegramMedia,
replyMarkup: InlineKeyboardMarkup? = null
) = execute(EditInlineMessageMedia(inlineMessageId, media, replyMarkup))
@@ -1,13 +1,17 @@
package dev.inmo.tgbotapi.extensions.api.edit.ReplyMarkup
package dev.inmo.tgbotapi.extensions.api.edit.reply_markup
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.ReplyMarkup.EditChatMessageReplyMarkup
import dev.inmo.tgbotapi.requests.edit.reply_markup.EditChatMessageReplyMarkup
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.Message
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageReplyMarkup(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
@@ -16,12 +20,20 @@ suspend fun TelegramBot.editMessageReplyMarkup(
EditChatMessageReplyMarkup(chatId, messageId, replyMarkup)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageReplyMarkup(
chat: Chat,
messageId: MessageIdentifier,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageReplyMarkup(chat.id, messageId, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageReplyMarkup(
message: Message,
replyMarkup: InlineKeyboardMarkup? = null
@@ -1,10 +1,14 @@
package dev.inmo.tgbotapi.extensions.api.edit.ReplyMarkup
package dev.inmo.tgbotapi.extensions.api.edit.reply_markup
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.ReplyMarkup.EditInlineMessageReplyMarkup
import dev.inmo.tgbotapi.requests.edit.reply_markup.EditInlineMessageReplyMarkup
import dev.inmo.tgbotapi.types.InlineMessageIdentifier
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageReplyMarkup(
inlineMessageId: InlineMessageIdentifier,
replyMarkup: InlineKeyboardMarkup? = null
@@ -1,16 +1,22 @@
package dev.inmo.tgbotapi.extensions.api.edit.text
import dev.inmo.tgbotapi.CommonAbstracts.TextSource
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.text.EditChatMessageText
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.ParseMode.ParseMode
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.Message
import dev.inmo.tgbotapi.types.message.content.TextContent
import dev.inmo.tgbotapi.utils.RiskFeature
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageText(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
@@ -22,6 +28,10 @@ suspend fun TelegramBot.editMessageText(
EditChatMessageText(chatId, messageId, text, parseMode, disableWebPagePreview, replyMarkup)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageText(
chat: Chat,
messageId: MessageIdentifier,
@@ -31,6 +41,10 @@ suspend fun TelegramBot.editMessageText(
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageText(chat.id, messageId, text, parseMode, disableWebPagePreview, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageText(
message: ContentMessage<TextContent>,
text: String,
@@ -39,27 +53,51 @@ suspend fun TelegramBot.editMessageText(
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageText(message.chat.id, message.messageId, text, parseMode, disableWebPagePreview, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageText(
chatId: ChatIdentifier,
messageId: MessageIdentifier,
entities: List<TextSource>,
entities: TextSourcesList,
disableWebPagePreview: Boolean? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = execute(
EditChatMessageText(chatId, messageId, entities, disableWebPagePreview, replyMarkup)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageText(
chat: Chat,
messageId: MessageIdentifier,
entities: List<TextSource>,
entities: TextSourcesList,
disableWebPagePreview: Boolean? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageText(chat.id, messageId, entities, disableWebPagePreview, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageText(
message: ContentMessage<TextContent>,
entities: List<TextSource>,
entities: TextSourcesList,
disableWebPagePreview: Boolean? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageText(message.chat.id, message.messageId, entities, disableWebPagePreview, replyMarkup)
) = editMessageText(message.chat.id, message.messageId, entities, disableWebPagePreview, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
@RiskFeature("This method is unsafe due to absence of any guaranties about the type of message. In case if message is not text message this method will throw an exception")
suspend fun TelegramBot.editMessageText(
message: Message,
entities: TextSourcesList,
disableWebPagePreview: Boolean? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = editMessageText(message.chat.id, message.messageId, entities, disableWebPagePreview, replyMarkup)
@@ -1,12 +1,16 @@
package dev.inmo.tgbotapi.extensions.api.edit.text
import dev.inmo.tgbotapi.CommonAbstracts.TextSource
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.edit.text.EditInlineMessageText
import dev.inmo.tgbotapi.types.InlineMessageIdentifier
import dev.inmo.tgbotapi.types.ParseMode.ParseMode
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageText(
inlineMessageId: InlineMessageIdentifier,
text: String,
@@ -15,9 +19,13 @@ suspend fun TelegramBot.editMessageText(
replyMarkup: InlineKeyboardMarkup? = null
) = execute(EditInlineMessageText(inlineMessageId, text, parseMode, disableWebPagePreview, replyMarkup))
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
suspend fun TelegramBot.editMessageText(
inlineMessageId: InlineMessageIdentifier,
entities: List<TextSource>,
entities: TextSourcesList,
disableWebPagePreview: Boolean? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = execute(EditInlineMessageText(inlineMessageId, entities, disableWebPagePreview, replyMarkup))
Loaded 100 of 868 files, more files were not shown because too many files have changed in this diff. Show more