1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 17:17:13 +00:00
Commit Graph

252 Commits

Author SHA1 Message Date
562bc0357d one more fix for forwarded messages 2019-04-30 12:53:56 +08:00
7977071d1a adapt raw message for forwarded messages 2019-04-30 12:41:52 +08:00
c12d08eda8 refactor of Ktor calls 2019-04-26 11:12:01 +08:00
711410c426 force UTF-8 usage for responses decoding 2019-04-26 10:34:32 +08:00
bed60720d3 InlineKeyboardMarkup using field as serial name for keyboard 2019-04-20 13:14:49 +08:00
b002f61b71 add serializer to InlineKeyboardButton and remove exact serializer for InlineKeyboardMarkup#keyboard 2019-04-20 13:09:47 +08:00
6d8190e5aa commonly of webhooks and other requests-related code 2019-04-20 12:56:48 +08:00
60d420f775 rename file of PollOption and remove redundant abstract folder in polls type 2019-04-17 10:23:08 +08:00
c450017764 change SendPoll to be serializable 2019-04-16 19:40:41 +08:00
6b045549f9 fix pollQuestionTextLength name 2019-04-16 19:23:29 +08:00
d2a2c7a02f optimize imports 2019-04-16 17:28:42 +08:00
ba368e9fa4 AnonymousForwardedMessage 2019-04-16 17:28:42 +08:00
2b831a803a is_member adding 2019-04-16 17:28:42 +08:00
8b67f16da3 all PublicChat implementations may have pinned message, chats abstractions refactoring 2019-04-16 17:28:42 +08:00
3bb1cb1552 StopPoll and deprecations of By*MessageId 2019-04-16 17:28:42 +08:00
d7bbb6dd85 add SendPoll 2019-04-16 17:28:42 +08:00
e2267c1cb4 add PollContent 2019-04-16 17:28:42 +08:00
457cadf265 add PollUpdate 2019-04-16 17:28:42 +08:00
b7d214d145 add Poll object 2019-04-16 17:28:42 +08:00
0af6e6ca15 PollOption added 2019-04-16 17:28:42 +08:00
1f8c27c756 hotfix for inputmedias 2019-04-15 19:30:09 +08:00
24fb3e2188 clear of webhook on UpdatePoller start 2019-04-13 16:06:58 +08:00
57bf40a4f9 DeleteWebhook request 2019-04-13 16:02:24 +08:00
03c90bb204 optimize imports 2019-04-13 10:21:19 +08:00
3c98f8fe4d warnings fixes 2019-04-13 10:20:29 +08:00
7d7fb4efbc one more optional remove commit 2019-04-13 10:16:40 +08:00
68712b49e2 fix of serialization issues 2019-04-13 10:15:25 +08:00
c40e857a23 remove optional 2019-04-13 09:38:25 +08:00
12686f79f6 remove redundant implementation of MessageContent by MediaGroupContent 2019-04-05 13:10:38 +08:00
5543b3979b optimize imports 2019-04-05 13:09:30 +08:00
4a1ece53b5 refactoring of "MediaContent" 2019-04-04 22:11:35 +08:00
ac39032f50 medagroupcontent is media content 2019-04-04 19:32:47 +08:00
e6e1995d81 optimize imports 2019-03-31 11:54:49 +08:00
d668da0e76 hotfix for command actual calling methods 2019-03-31 11:28:28 +08:00
c4a3e2cf3d MessageEntities are using string formatting extensions 2019-03-31 11:26:41 +08:00
769d0360f3 text formatting extensions 2019-03-31 11:11:32 +08:00
4ccfb93a94 Markdown and HTML typealiases 2019-03-31 10:20:14 +08:00
997f9ce411 message content resend by default using HTMLParseMode 2019-03-30 20:12:00 +08:00
4679dc118d add tools for work with html captions and texts 2019-03-27 09:43:36 +08:00
609a474874 MessageEntity#asHtmlSource 2019-03-27 09:35:37 +08:00
1bdcf3ae60 add CommonLimiter 2019-03-27 09:13:07 +08:00
ac5d3214b4 rewrite handleUpdates 2019-03-23 15:19:29 +08:00
7d1871d8dc media group optimizations 2019-03-23 14:31:28 +08:00
37c112f6ab media group messages order 2019-03-22 09:07:09 +08:00
7d7a6ccf80 MediaCollectionContent as MediaContent 2019-03-21 09:18:54 +08:00
da6caf1834 optimize imports 2019-03-21 08:46:26 +08:00
ed341c231d media group messages refactoring 2019-03-21 08:45:51 +08:00
15686f742a optimize imports 2019-03-20 09:05:02 +08:00
e303a43d36 complete ImplicitReflectionSerializer removing 2019-03-20 08:55:46 +08:00
03bacc59ef remove redundant ImplicitReflectionSerializer 2019-03-20 08:52:58 +08:00
c9e72920df optimize imports 2019-03-15 16:12:17 +08:00
1f0af84adc rewrite structure of media groups updates 2019-03-15 07:47:46 +08:00
9f5d985a71 fix for pushMediaGroupUpdate in UpdatesPoller 2019-03-14 17:26:50 +08:00
26c67b2f99 clear methodology of converting common updates to media group updates 2019-03-14 16:31:27 +08:00
a4d9fdcd4b Media Groups fixes 2019-03-14 15:44:19 +08:00
0cc03d757e RequestsExecutor#executeUnsafe use do-while 2019-03-12 10:50:06 +08:00
c167c556ae a little fixes 2019-03-12 08:20:40 +08:00
1afa870f6d now requests executor in updates poller is strong 2019-03-11 11:00:38 +08:00
7d028f854d rename keyStorePath in serialize/deserialize variants 2019-03-07 11:09:37 +08:00
49fb020678 add private key config for webhook and opportunity to work with ssl directly in bot 2019-03-06 12:23:28 +08:00
336e76450f UpdatesPoller, asReference, mediaGroupId for list and separate executes and update polling extensions 2019-03-06 10:09:45 +08:00
7b78dbdb3e improvement of exceptions 2019-03-06 08:10:29 +08:00
8bb2b5c218 fixes in nullability of certificate for webhook 2019-03-04 14:24:07 +08:00
a393382a7c fixes for webhooks 2019-03-04 11:13:01 +08:00
057d902883 add SetWebhook factory which can be used without certificate file 2019-03-04 10:49:37 +08:00
f4b7bb42d6 add plain answer to default exception 2019-03-04 10:34:28 +08:00
ce9e141680 rewrite GetWebhookInfo as class for better work with serialization 2019-02-27 14:12:39 +08:00
f3ba288ad8 WebhookInfo 2019-02-27 14:01:04 +08:00
f4e58375f2 add MediaGroupUpdate 2019-02-27 11:03:59 +08:00
b1d732c99a deprecate toJsonWithoutNulls 2019-02-27 10:51:25 +08:00
f1836ec238 add contextual serializer to DataRequest and Request to avoid exceptions 2019-02-27 08:52:22 +08:00
8997454a46 update order of arguments in setWebhook 2019-02-26 16:11:37 +08:00
1520271777 add main webhooks functionality for using with reverse proxy 2019-02-26 16:01:26 +08:00
ff2b56b3a9 add SetWebhook 2019-02-26 09:45:56 +08:00
7cc02492b4 fix SendMediaGroupData convertedMedia 2019-02-23 18:34:55 +08:00
385426552e add custom MediaGroupMemberInputMedia serializer 2019-02-23 18:21:24 +08:00
b39232ae47 add SimpleRequestSerializer 2019-02-21 15:52:36 +08:00
313068543f fix warnings 2019-02-21 14:21:33 +08:00
2974a33e51 fixes in serialization 2019-02-21 14:09:04 +08:00
a1b2aed78c hotfix for username 2019-02-18 14:35:58 +08:00
aaa0f8f114 Optional replyMarkup in InlineQueryResultArticle 2019-02-18 12:59:09 +08:00
f6581ff3be replace all usernames which was as strings by Username class usage 2019-02-18 12:56:59 +08:00
0009d211bc fix "equals" of Ysername 2019-02-18 12:53:01 +08:00
45ba325f1b fixes in Username 2019-02-17 21:12:56 +08:00
3cd1f3c3d4 fix parseMode of InputTextMessageContent 2019-02-17 18:55:24 +08:00
1d1ac9040c MediaGroupList extensions 2019-02-17 14:40:43 +08:00
e774f958af MediaGroupMessage is CommonMessage 2019-02-17 14:30:18 +08:00
03e7ca532d startGettingUpdates with better media groups callbacks 2019-02-15 09:54:18 +08:00
4003fdbcd1 executeUnsafe to loop 2019-02-14 16:45:25 +08:00
42bb036c41 optimize imports 2019-02-10 13:47:58 +08:00
d67d16c72d add ReplaceWith to old functions and replace built-in usages of deprecations 2019-02-10 13:46:23 +08:00
1dc80f6929 replace of exceptions 2019-02-10 13:41:20 +08:00
9f3d678528 fix mime_type of inline result document and video implementations 2019-02-08 14:37:53 +08:00
a6d0925cfd optimize imports 2019-02-07 20:25:04 +08:00
983e5edf7b inline messages edit result fixes 2019-02-07 20:19:25 +08:00
a04f1515ea fix type field in InlineQueryResult 2019-02-07 19:50:08 +08:00
6f53e92b69 make AnswerInlineQuery serializable -.- 2019-02-07 19:38:47 +08:00
ceabdd4492 one more fix for serialization of AnswerInlineQuery 2019-02-07 19:36:03 +08:00
f6ce40b62b resolve serialization problems 2019-02-07 19:32:31 +08:00
f83921223e fix of InlineQuery offset type 2019-02-07 19:12:26 +08:00
0138036ed2 add InlineQuery#createAnswer 2019-02-07 14:28:24 +08:00
05b447da85 add AnswerInlineQuery 2019-02-07 14:28:24 +08:00
ef127b85dc add cached Sticker InlineQueryResult 2019-02-07 14:28:24 +08:00
849e21bf15 add Contact InlineQueryResult + add vcard field 2019-02-07 14:28:24 +08:00
1963432bc8 add Venue InlineQueryResult + fix titles in all results 2019-02-07 14:28:24 +08:00
8369114d26 add Location InlineQueryResult 2019-02-07 14:28:24 +08:00
fec37d633c add limit for live period 2019-02-07 14:28:24 +08:00
78b63d7b1b add Document InlineQueryResult + a little fixes in audio and voice results 2019-02-07 14:28:24 +08:00
99c3f9b742 add Voice InlineQueryResult + a little fix of Audio result 2019-02-07 14:28:24 +08:00
fa10535a70 add Audio InlineQueryResult 2019-02-07 14:28:24 +08:00
1ce4c97899 add Video InlineQueryResult 2019-02-07 14:28:24 +08:00
558800c1e4 add Mpeg4Gif InlineQueryResult 2019-02-07 14:28:24 +08:00
caa759db21 add InlineQueryResult photo and gif common and cached realisations 2019-02-07 14:28:24 +08:00
0f9533e54a InputMessageContent filling 2019-02-07 14:28:24 +08:00
265ca63c97
Fix error field in RequestParametersRaw 2019-02-05 13:07:39 +08:00
58f73fac97 RetryAfterError handling in KtorRequestsExecutor 2019-02-05 12:55:46 +08:00
c4f0ed4b48 Response#parameters fixing 2019-02-05 12:51:52 +08:00
206b3fd3e4 ResponseParameters renaming to Response 2019-02-05 12:40:29 +08:00
6f04baea4e KtorRequestsExecutor custom json formatter 2019-02-05 12:30:09 +08:00
66be2681c0 RequestsExecutor.executeUnsafe(...) retries 2019-01-31 09:57:49 +08:00
05e0ec704e RequestsExecutor.executeAsync(...): Deferred 2019-01-31 09:53:58 +08:00
d79d163750 ResendableContent#createResends 2019-01-29 10:22:09 +08:00
4c0472a139 new "createMarkdownText" 2019-01-29 10:13:59 +08:00
81029db165 RegularTextMessageEntity and convertToFullMessageEntityList 2019-01-29 09:47:37 +08:00
2af4ebcd44 apply length restrictions to all textable send requests 2019-01-29 08:20:04 +08:00
eab147a38f update texts lengths restrictions 2019-01-29 08:18:07 +08:00
fcb760eb98 fix in GetMe 2019-01-25 09:59:52 +08:00
8318f708fd optimise imports 2019-01-24 12:01:54 +08:00
c2cb57635c refactoring and fixes 2019-01-24 12:01:51 +08:00
5692bb321c Ktor realisation use RequestLimiter 2019-01-24 10:36:44 +08:00
e77478b13e RequestLimiter 2019-01-24 10:35:38 +08:00
d7a77085b5 remove BaseRequestsExecutor scope 2019-01-24 10:34:48 +08:00
58684ee57e replace ProxySettings 2019-01-24 09:00:29 +08:00
82420165d0 replace "useWith" and rename file of BaseRequestsExecutor 2019-01-24 08:37:39 +08:00
a0a93646e4 0.8.5 2019-01-23 12:15:57 +08:00
8510b433a8 optimise imports 2019-01-21 16:15:17 +08:00
a2d7033745 CreatorChatMember implement AdministratorChatMember 2019-01-21 16:04:55 +08:00
116344c0a6 change signature of Update + mediaGroupCallback 2019-01-21 14:13:31 +08:00
09cb429a59 optimise Photo#biggest, add MediaGroupContent#toMediaGroupMemberInputMedia 2019-01-21 11:06:45 +08:00
1518731786 fix "SendContact" method and "SendSticker" file name 2019-01-21 09:24:22 +08:00
65a226a51b fix method in EditChatMessageText 2019-01-21 09:06:58 +08:00
f8746e4555 "ChatIdentifier" classes now are "data" classes 2019-01-21 08:24:39 +08:00
bc0606e879 Now all media sending factories which contains "thumb" have default "null" value 2019-01-20 13:13:42 +08:00
a1fd6dd899 optimise imports 2019-01-17 10:43:51 +08:00
9f8db42981 refactoring of dependencies in content abstracts 2019-01-17 10:43:08 +08:00
5d8170e7e4 "MessageContent" now is "ResendableContent" 2019-01-17 10:40:37 +08:00
54c55d2dc6 Added "ResendableContent" 2019-01-17 10:19:33 +08:00
b4ef91cc77 Added "createMarkdownText" and extensions for "CaptionedMediaContent" and "TextContent" 2019-01-17 09:42:23 +08:00
0f5ee669d8 ForwardedMessage contains nullable "from" 2019-01-11 11:54:51 +08:00
38d4010bc1 FromUserMessage 2019-01-10 22:10:47 +08:00