Compare commits

...
2180 Commits
Author SHA1 Message Date
InsanusMokrassar 4d433b96c8 retarget release to 37.1.0 2026-10-11 00:43:51 +06:00
InsanusMokrassar 8f4423f55e match changelog style 2026-10-10 20:25:55 +06:00
InsanusMokrassar c002fa6b80 match changelog style 2026-10-10 20:20:16 +06:00
InsanusMokrassar 4c01943367 restore gradle wrapper scripts 2026-10-10 20:05:07 +06:00
InsanusMokrassar 246a347f79 update dependencies 2026-10-10 16:57:28 +06:00
InsanusMokrassar 27da9eec5e start 38.0.0 2026-10-10 14:28:59 +06:00
InsanusMokrassar 8d454f8c1c Merge pull request #1060 from InsanusMokrassar/37.0.0
37.0.0
2026-10-08 20:42:56 +06:00
InsanusMokrassar aa93697780 small fixes 2026-10-08 14:30:38 +06:00
InsanusMokrassar b3ad61e7c4 fix of date time format 2026-09-20 23:11:58 +06:00
InsanusMokrassar 1d8b4255a6 fixes 2026-09-08 18:04:06 +06:00
InsanusMokrassar c2f0bcd98b refactor(core): tighten draft and chat contracts 2026-09-07 00:59:22 +06:00
InsanusMokrassar 4a9d6b7b56 docs(agents): keep local history file uncommitted by default 2026-09-07 00:59:12 +06:00
InsanusMokrassar b1304ef10d feat(api)!: use direct message threads for drafts
BREAKING CHANGE: draft APIs replace threadId/MessageThreadId with
directMessageThreadId/DirectMessageThreadId and serialize
direct_messages_topic_id.
2026-09-01 22:42:58 +06:00
InsanusMokrassar 3ca3e571b5 feat(api)!: widen rich draft chat identifier
BREAKING CHANGE: SendRichMessageDraft, sendRichMessageDraft, and the rich-draft send overload now accept IdChatIdentifier. Existing ChatId source calls remain valid; JVM signatures changed.
2026-09-01 19:14:29 +06:00
InsanusMokrassar af09ef4c29 feat(api)!: keep raw ephemeral send overloads
Keep receiverUserId and callbackQueryId overloads as non-deprecated API
alternatives while forwarding callback-message replacement through
EphemeralMessageParameters.

BREAKING CHANGE: raw send overloads gain replaceCallbackQueryMessage
after callbackQueryId, changing positional binding and JVM signatures.
2026-09-01 18:38:44 +06:00
InsanusMokrassar d43de9623d Restore deprecated send overload compatibility 2026-08-26 17:58:51 +06:00
InsanusMokrassar 0cac885dfc small refactoring 2026-08-26 16:29:46 +06:00
InsanusMokrassar 9fcb267ee2 Regenerate API after Bot API 10.3 audit 2026-08-26 15:28:12 +06:00
InsanusMokrassar 3bdfdb57b5 Document Bot API 10.3 coverage audit 2026-08-26 15:27:50 +06:00
InsanusMokrassar f4a41c047d Preserve UniqueGiftInfo constructor compatibility 2026-08-26 15:27:30 +06:00
InsanusMokrassar f8e70c5cc7 Complete Bot API 10.3 ephemeral media support 2026-08-26 15:27:04 +06:00
InsanusMokrassar d972cc5b8d Fix Bot API 10.3 rich message contracts 2026-08-26 15:26:40 +06:00
InsanusMokrassar 61c4e7af17 Document enumerable sealed-interface rule 2026-08-26 14:32:44 +06:00
InsanusMokrassar 93a4bf1da0 Add Bot API 10.3 General support 2026-08-25 14:02:46 +06:00
InsanusMokrassar f86bb6662e Add Bot API 10.3 Ephemeral messages support 2026-08-25 14:02:46 +06:00
InsanusMokrassar 2e69bc6954 Add Bot API 10.3 Rich Messages support 2026-08-25 14:02:46 +06:00
InsanusMokrassar efd4667ffa Add Bot API 10.3 Reply markup support 2026-08-25 12:33:45 +06:00
InsanusMokrassar 752689447b start 37.0.0 2026-08-25 12:00:37 +06:00
InsanusMokrassar 1ec5e02e0a Merge pull request #1059 from InsanusMokrassar/36.1.0
36.1.0
2026-08-22 01:13:55 +06:00
InsanusMokrassar b23ec8bc01 Fix version number in CHANGELOG.md 2026-08-22 01:13:38 +06:00
InsanusMokrassar 78e1acc260 Fix microutils version format in libs.versions.toml 2026-08-21 20:12:49 +06:00
InsanusMokrassar 36e38f2b01 update dependencies 2026-08-21 18:34:15 +06:00
InsanusMokrassar 05d6927852 start 36.1.0 2026-08-21 17:37:58 +06:00
InsanusMokrassar e793159400 Merge pull request #1056 from InsanusMokrassar/36.0.0
36.0.0
2026-08-21 15:51:27 +06:00
InsanusMokrassar 0eaaded6e4 removed codex folder -.- 2026-08-21 13:02:44 +06:00
InsanusMokrassar 642306c835 update changelog 2026-08-21 12:55:00 +06:00
InsanusMokrassar 5f115b6e3d remove sol report 2026-08-21 12:22:25 +06:00
InsanusMokrassar 5755724569 improvements in rich messages 2026-08-17 23:30:37 +06:00
InsanusMokrassar 8bee8982bb improvements in rich messages 2026-08-17 17:35:03 +06:00
InsanusMokrassar 5b6fe8eb96 improve InputRichBlocksTable 2026-08-17 10:46:18 +06:00
InsanusMokrassar f9c634ca46 improvements 2026-08-16 23:42:11 +06:00
InsanusMokrassar b913f66b1e fixes 2026-08-15 14:22:35 +06:00
InsanusMokrassar 6fbe2e5649 improve replies with ephemeral 2026-08-15 00:15:12 +06:00
InsanusMokrassar 8b0e0bf820 fix of Replyparameters calls 2026-08-14 20:16:47 +06:00
InsanusMokrassar 4f19cb7626 improvemens? 2026-08-13 17:51:33 +06:00
InsanusMokrassarandClaude Opus 4.8 d48e951232 Require ephemeral receiver/message id and add EphemeralChatId variants
Ephemeral edit/delete/replyToEphemeral requests no longer derive receiverUserId
and ephemeralMessageId from a throwing default: both are plain required
parameters again. Each chatId-taking form instead gained a convenience variant
accepting an EphemeralChatId, which sources both values from the identifier and
delegates to the required-parameter form, so a missing ephemeralMessageId fails
in the thin overload rather than during serialization.

Adds EphemeralChatIdRequestsTest covering the delegation of the core variants.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 19:24:56 +06:00
InsanusMokrassarandClaude Opus 4.8 a1d2ebb4dc Add EphemeralChatId and identifier-sourced ephemeral defaults
New EphemeralChatId inheritor of IdChatIdentifier carrying receiverUser and
ephemeralMessageId (mirroring ChatIdWithThreadId), with ChatIdentifier.receiverUser/
ephemeralMessageId extensions like ChatIdentifier.threadId. Every send/reply/edit/
delete method that takes receiverUserId/ephemeralMessageId now defaults them from
the chat identifier, so passing an EphemeralChatId auto-fills them the same way a
ChatIdWithThreadId fills threadId.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 12:05:18 +06:00
InsanusMokrassarandClaude Opus 4.8 bc52be7b40 Document the plan/code/check agent pipeline in HELPERS
Add a rule describing the three-phase subagent pipeline (Plan/Architect ->
Coding -> Check) and the best/high/medium model tiers (Fable/Opus/Sonnet).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 11:23:13 +06:00
InsanusMokrassarandClaude Opus 4.8 a2f670834e Note support of Telegram Bot API 10.2
Bump README supported-version badge to 10.2 and add the Bot API 10.2 support
banner to the 36.0.0 changelog entry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 21:08:19 +06:00
InsanusMokrassarandClaude Opus 4.8 3d47034f54 Add Bot API 10.2 subscription updates support
New BotSubscriptionUpdated payload (user, invoicePayload, typed state:
Canceled/Active/Failed/Unknown) in dev.inmo.tgbotapi.types.payments and the
BotSubscriptionUpdatedUpdate for the new subscription update
(UPDATE_SUBSCRIPTION), FlowsUpdatesFilter.botSubscriptionUpdatedUpdatesFlow,
onBotSubscriptionUpdated trigger, waitBotSubscriptionUpdated expectation and
class casts. Notes the Telegram-side Mini App method-origin security hardening.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 21:07:42 +06:00
InsanusMokrassarandClaude Opus 4.8 0c329326f7 Add Bot API 10.2 Communities support
New communities domain: Community + CommunityId, CommunityChatAdded and
CommunityChatRemoved service messages (CommonEvent) wired through RawMessage,
ChatFullInfo/ExtendedChat.community (including ExtendedBot), plus
onCommunityChatAdded/onCommunityChatRemoved triggers and wait expectations.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 20:47:15 +06:00
InsanusMokrassarandClaude Opus 4.8 838caae7f5 Add Bot API 10.2 Ephemeral Messages support
New ephemeral messaging surface: EphemeralMessageId, Message.receiverUser/
ephemeralMessageId (PossiblyEphemeralMessage on group message impls),
BotCommand.isEphemeral, receiverUserId/callbackQueryId parameters across the 13
covered send methods (core requests, per-type api extensions and the
Sends/Replies/RepliesWithChatsAndMessages aggregators), editEphemeralMessageText/
Media/Caption/ReplyMarkup and deleteEphemeralMessage, plus replyToEphemeral
helpers and smart-branch ephemeral replies.

BREAKING: ReplyParameters.messageId and chatIdentifier are now nullable and the
WithMessageId supertype was dropped so ephemeral_message_id-only replies can be
expressed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 20:25:59 +06:00
InsanusMokrassarandClaude Opus 4.8 16be206b0f Add Bot API 10.2 Rich Messages support
Input-side rich messages: InputRichMessage.blocks/media fields, 21
InputRichBlock* block types + InputRichBlockSerializer, InputRichBlockListItem,
InputRichMessageMedia, TelegramMediaVoiceNote + RichMessageMemberTelegramMedia
marker on Animation/Audio/Photo/Video, DSL builders, and multipart upload for
SendRichMessage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 19:16:07 +06:00
InsanusMokrassar 0b3a5bb0af start 36.0.0 2026-07-18 18:31:03 +06:00
InsanusMokrassar c7761fd294 Merge pull request #1053 from InsanusMokrassar/35.1.0
35.1.0
2026-07-01 18:01:07 +06:00
InsanusMokrassarandClaude Opus 4.8 0e9f9111eb Update dependencies and migrate to Gradle 9 / Dokka v2
Dependency bumps: Kotlin 2.3.20->2.3.21, Coroutines 1.10.2->1.11.0,
Ktor 3.4.2->3.5.1, KSP 2.3.6->2.3.9, MicroUtils 0.29.2->0.30.0,
Dokka 2.0.0->2.2.0, Versions plugin 0.53.0->0.54.0, NMCP 1.4.4->1.6.0.

Gradle wrapper 8.13->9.6.1 with build-script fixes for Gradle 9:
Project.exec() -> providers.exec(), tasks.whenTaskAdded -> tasks.configureEach.

Dokka migrated to the Dokka Gradle Plugin v2. The docs module is now
included as the KDocs aggregator (dokka {} DSL with sourceRoots, new URI,
ProcessIsolation heap for the generator worker), excluded from binary
compatibility validation, and the kdocs workflow runs :docs:dokkaGenerate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 17:54:13 +06:00
InsanusMokrassar 763b07fc3c start 35.1.0 2026-07-01 16:08:25 +06:00
InsanusMokrassar 481a3b4ff1 Merge pull request #1052 from InsanusMokrassar/35.0.0
35.0.0
2026-07-01 15:43:02 +06:00
InsanusMokrassar fc764d1f95 add note about support of telegram bot api 10.1 and fix changelogs 2026-07-01 15:42:11 +06:00
InsanusMokrassar 68987feabb improve richblocks api and let rich message content to be correctly resendable if there are no any media block inside 2026-07-01 14:25:39 +06:00
InsanusMokrassar 5341b2eccf apiDump 2026-07-01 13:27:09 +06:00
InsanusMokrassar 7e4efcd645 rewrite RichMessageContent.createResend onto sending of simple rich message 2026-07-01 12:52:55 +06:00
InsanusMokrassar 390770ca80 refactor/fixes in rich parts 2026-07-01 12:46:16 +06:00
InsanusMokrassar b054f3d1b5 Revert "Modify markdown function to add newlines"
This reverts commit 3a05a88d4f.
2026-07-01 11:25:43 +06:00
InsanusMokrassar 3a05a88d4f Modify markdown function to add newlines 2026-07-01 01:16:36 +06:00
InsanusMokrassarandClaude Opus 4.8 edad79ace8 Add HELPERS rules: work in main worktree, one subagent per subtask
Document two working rules: all work must be done in the normal (main)
worktree rather than a separate `.claude/worktrees` worktree, and a prompt
that lists several subtasks must run each subtask as its own subagent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 22:33:33 +06:00
InsanusMokrassarandClaude Opus 4.8 c3495d8817 Add HELPERS rule preferring members over when-dispatch extensions
Document that a property/method which can live on an interface/class must be
declared there and overridden per implementation, instead of a common
extension that dispatches with a when over every subtype; shared logic goes
into a companion-object function or an internal top-level helper.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 22:01:20 +06:00
InsanusMokrassarandClaude Opus 4.8 88a54350df Rename RichText source to rawText and move it into members
Replace the RichText.source extension property (a when over every subtype)
with a rawText member declared on RichText and implemented directly by each
inheritor: RichTextPlain.rawText = text, the wrapping entities delegate to
text.rawText, and custom emoji / mathematical expression / anchor fall back
to their own representation. Update the RichBlockPreformatted and media
markdown builders and the formatting tests accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 21:59:18 +06:00
InsanusMokrassarandClaude Opus 4.8 8acd7453a6 Move rich markdown and html bodies into companion objects
For every RichText and RichBlock type the markdown and html rendering now
lives in companion-object functions taking the relevant fields, and the
property overrides are plain value initializers that reuse those functions
(e.g. RichTextEmailAddress.markdown(text, emailAddress)). Class-specific
render helpers (list, table, map, block quotation, details open attribute)
move into the matching companions; helpers shared across several types
(credit cite, media and media container rendering) stay internal top-level
functions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 21:41:32 +06:00
InsanusMokrassarandClaude Opus 4.8 e793eea943 Move RichText/RichBlock markdown and html into members
Add markdown and html as members of the RichText and RichBlock sealed
interfaces and override them in every inheritor (RichTextPlain,
RichTextGroup and all 21 RichBlock subtypes), mirroring the existing
RichTextEntity implementation. The former RichText/RichBlock.markdown
and .html extension properties (which dispatched via a when over each
subtype) are removed; the shared RichBlock render helpers become
internal so the overrides can reuse them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 20:55:46 +06:00
InsanusMokrassarandClaude Opus 4.8 6b4999095e Add rich text / rich block DSL builder
Add a type-safe Kotlin DSL for building rich messages:
* buildRichText { } - RichTextBuilder with plain() plus a function for every
  RichTextEntity (String and nested RichTextBuilder overloads where text-bearing);
* buildRichBlocks { } / buildRichTextInfo { } - RichBlocksBuilder with the
  text-bearing and container blocks (paragraph, heading, list, blockQuotation,
  details, ...), nesting RichText or further blocks per block kind;
* RichBlockListBuilder for list items.

Container blocks expose nested block/text builders; file/cell-heavy blocks (media,
table, collage, slideshow, map) are appended via add() / unary plus. A
@DslMarker (RichTextDsl) keeps the nested scopes from leaking receivers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 17:29:47 +06:00
InsanusMokrassarandClaude Opus 4.8 23578d25ef Add rich block markdown and html source builders
Add List<RichBlock>.toRichMarkdown() / toRichHtml() (and per-block RichBlock
.markdown / .html plus RichTextInfo.markdown / .html convenience) that render the
Rich Markdown style and Rich HTML style source strings for a whole rich message,
ready to feed into InputRichMessageMarkdown / InputRichMessageHTML.

All 21 block types are covered, including lists (bullet/ordered/task), tables,
block/pull quotations, details, collages, slideshows, maps and media. Media
blocks use the Telegram file_id as the source (documented), since Telegram only
accepts HTTP(S) URLs for rich media and the parsed model carries no public URL.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 17:21:19 +06:00
InsanusMokrassarandClaude Opus 4.8 b5238320a5 Add tests for rich text entity markdown and html
Cover markdown and html output of all 25 RichTextEntity subtypes plus the
recursive RichText.markdown / RichText.html / RichText.source extensions
(nested groups, plain-text escaping, plain-text extraction).

Note: plainHtmlEscapesAngleBrackets asserts the current String.toHtml()
behaviour, which escapes '&' last and therefore over-escapes '<'/'>' (e.g.
"a<b" -> "a&amp;lt;b"). This matches the rest of the library's HTML output.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 17:11:14 +06:00
InsanusMokrassarandClaude Opus 4.8 4cfc054526 Implement markdown and html for RichTextEntity inheritors
Add Rich Markdown style and Rich HTML style serialization for every
RichTextEntity subtype, following the Bot API rich formatting spec
(https://core.telegram.org/bots/api#rich-markdown-style and #rich-html-style).

New RichTextFormatting.kt provides:
* String.escapeRichMarkdown() escaping the rich-markdown special characters;
* RichText.source - plain unformatted text of any RichText;
* RichText.markdown / RichText.html - recursive dispatch over RichTextPlain,
  RichTextGroup and RichTextEntity so inner texts render correctly.

Each of the 25 entity types now overrides markdown and html. Auto-detected
entities (mention, hashtag, cashtag, bank card, bot command) emit their visible
text; the rest wrap inner text in the corresponding markers/tags.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 17:02:03 +06:00
InsanusMokrassarandClaude Opus 4.8 1091dbdb5e Rename RichMessage -> RichTextInfo
The Telegram type backing rich-formatted message info is RichMessage, but the
class name collided conceptually with the in-progress rich-message builders.
Rename the data class (and its file) to RichTextInfo and update all references
(RawMessage, RichMessageContent, serialization test) plus the API dump.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 16:56:58 +06:00
InsanusMokrassar 313fcb3325 fix of sendrichmessagedraft 2026-06-29 23:37:14 +06:00
InsanusMokrassar 1c06ec8687 apiDump 2026-06-29 17:04:03 +06:00
InsanusMokrassarandClaude Opus 4.8 9fc80fdd4d Fix RichTextBotCommand SerialName to bot_command
RichTextBotCommand.botCommand reused botCommandField ("command", shared
with BotCommand.command) but Bot API docs require "bot_command". Add
botCommandFullField = "bot_command" and switch RichTextBotCommand to it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 16:17:56 +06:00
InsanusMokrassarandClaude Opus 4.8 df5018ecf5 Make ChatJoinRequestQueryResult inheritors data objects + serializable
- Approve/Decline/Queue are now data object
- each inheritor (and Unknown) annotated with the shared
  ChatJoinRequestQueryResult.Companion serializer
- companion PrimitiveSerialDescriptor serial name is "ChatJoinRequestQueryResult"

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 18:49:42 +06:00
InsanusMokrassarandClaude Opus 4.8 0188c65319 Rework ChatJoinRequestQueryResult + EditChatMessageText nullable text
- ChatJoinRequestQueryResult: enum -> sealed interface (Approve/Decline/
  Queue objects + Unknown) with a companion KSerializer using a
  PrimitiveKind.STRING descriptor (encodeString/decodeString), not
  String.serializer()
- EditChatMessageText: text is now nullable per API; add EditChatMessageRichText
  factory for rich edits; widen EditTextChatMessage.text to String?

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 18:42:25 +06:00
InsanusMokrassarandClaude Opus 4.8 c2b1a5d44b Add behaviour-builder coverage for receiving Rich Messages
- onRichMessage trigger (ContentTriggers)
- waitRichMessage / waitRichMessageMessage expectations
- Flow<ContentMessage<*>>.onlyRichMessageContentMessages() util

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 17:52:10 +06:00
InsanusMokrassarandClaude Opus 4.8 6bdd217530 Add Bot API 10.1 Rich Messages support
Adds the full Rich Messages type system and methods:
- RichText hierarchy: RichTextPlain, RichTextGroup, RichTextEntity and all
  24 RichText* entity types, with a recursive serializer handling plain
  strings, arrays and typed objects
- RichBlock hierarchy: all 21 RichBlock* types plus RichBlockCaption,
  RichBlockTableCell and RichBlockListItem (JsonContentPolymorphic by type)
- RichMessage type and RichMessageContent message content; rich_message
  parsed in RawMessage; RichMessageContentMessage typealias
- InputRichMessage (internal constructor + InputRichMessageHTML /
  InputRichMessageMarkdown factories) and InputRichMessageContent usable as
  InputMessageContent
- SendRichMessage and SendRichMessageDraft requests with API bindings
- richMessage parameter on EditChatMessageText
- Serialization round-trip test for RichMessage/RichText/RichBlock

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 17:32:56 +06:00
InsanusMokrassarandClaude Opus 4.8 f6d5b3ea71 Add Bot API 10.1 Join Request Queries support
Adds:
- ChatJoinRequestQueryId value class and ChatJoinRequest.queryId field
- ExtendedBot.supportsJoinRequestQueries (User.supports_join_request_queries)
- ExtendedChat.guardBot (ChatFullInfo.guard_bot), parsed for public chats
- AnswerChatJoinRequestQuery request + ChatJoinRequestQueryResult enum
- SendChatJoinRequestWebApp request
- answerChatJoinRequestQuery / sendChatJoinRequestWebApp TelegramBot extensions

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 17:03:26 +06:00
InsanusMokrassarandClaude Opus 4.8 628e877064 Add Bot API 10.1 Polls support (Link, InputMediaLink)
Adds the Link type implementing PollMedia (the url attached to a poll
option), parses the new `link` field in PollMedia, and adds
TelegramMediaLink (InputMediaLink) usable as InputPollOptionMedia.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 16:53:59 +06:00
InsanusMokrassar 8ba13ea5fc start 35.0.0 2026-06-19 16:27:54 +06:00
InsanusMokrassar b8e995f36d Merge pull request #1047 from InsanusMokrassar/34.0.0
34.0.0
2026-06-13 14:34:21 +06:00
InsanusMokrassar fa73f34182 Merge branch 'master' into 34.0.0 2026-06-13 14:08:47 +06:00
InsanusMokrassar db0e839d2f Merge pull request #1049 from InsanusMokrassar/33.2.0
33.2.0
2026-06-13 13:54:56 +06:00
InsanusMokrassar 7b28c0f068 fill changelog 2026-06-13 13:54:35 +06:00
InsanusMokrassar f4c50caf1e add supporting of telegram bots api note 2026-06-13 13:51:43 +06:00
InsanusMokrassar 7e45f84b78 small update of changelog 2026-06-13 00:24:55 +06:00
InsanusMokrassar 1603f4dae4 small note about migration 2026-06-06 13:17:01 +06:00
InsanusMokrassar a9f27b4417 ksp + apiDump 2026-06-06 13:02:04 +06:00
InsanusMokrassar b39b5f376e small improvement in message hierarchy 2026-05-30 18:56:27 +06:00
InsanusMokrassar df77c65c86 rework of guest answers messages 2026-05-30 15:09:19 +06:00
InsanusMokrassar 1f2b3b9464 guest message answers rework 2026-05-30 12:49:54 +06:00
InsanusMokrassar 643133a87b add api exception (solution of #1048) + add classcasts for exceptions 2026-05-28 19:05:53 +06:00
InsanusMokrassar cd56c7e257 rename functions names in NewRequestExceptionTests 2026-05-28 18:38:35 +06:00
InsanusMokrassar 03921092a4 Merge pull request #1042 from Dramex/fix/1008-too-many-requests-case-insensitive
Detect Too Many Requests case-insensitively (closes #1008)
2026-05-28 18:36:54 +06:00
InsanusMokrassar 4a09a6372e start 33.2.0 2026-05-28 18:25:55 +06:00
InsanusMokrassar fdd21f3cbd fixes in guest mode 2026-05-23 00:02:16 +06:00
InsanusMokrassar eacf01a158 api dump 2026-05-20 18:03:19 +06:00
InsanusMokrassar dd35631345 fix checking of text length in SendMessageDraft 2026-05-20 17:59:46 +06:00
InsanusMokrassar 631a4f16bd implement 'others' changes 2026-05-19 23:25:15 +06:00
InsanusMokrassar 236939eab8 implement guest mode and make HUGE CHANGES IN MESSAGES HIERARCHY 2026-05-17 23:20:10 +06:00
InsanusMokrassar d47641c39a add LivePhotos support 2026-05-17 16:43:18 +06:00
InsanusMokrassar f3f28b6165 fixes of hierarchy and build 2026-05-17 14:53:49 +06:00
InsanusMokrassar 08d160cfa7 add Polls updates 2026-05-16 16:59:40 +06:00
InsanusMokrassar 3ed7c8c75f Chat Management section realization 2026-05-15 18:10:30 +06:00
InsanusMokrassar 7e1df37b87 start 34.0.0 2026-05-15 00:27:33 +06:00
InsanusMokrassar 97b7b3d5d7 Merge pull request #1043 from InsanusMokrassar/33.1.0
33.1.0
2026-04-19 13:26:44 +06:00
InsanusMokrassar 62b4bc15ca remove kotlinpoet from changelog 2026-04-19 12:58:27 +06:00
InsanusMokrassar 7c2ce53713 fix changelog style 2026-04-19 12:56:22 +06:00
InsanusMokrassar 035c8f469a update dependencies
dev.inmo:micro_utils 0.29.1 -> 0.29.2
dev.inmo:kslog 1.6.0 -> 1.6.1
com.squareup:kotlinpoet-ksp 2.2.0 -> 2.3.0
io.ktor:ktor-* 3.4.1 -> 3.4.2
org.jetbrains.kotlinx:kotlinx-serialization-* 1.10.0 -> 1.11.0
org.jetbrains.kotlin:kotlin-* 2.3.10 -> 2.3.20
2026-04-19 12:48:40 +06:00
InsanusMokrassar c982eef85b start 33.1.0 2026-04-19 12:18:46 +06:00
emad 4500711db4 Detect Too Many Requests descriptions case-insensitively
Telegram has been observed to return both "Bad Request: Too Many
Requests: retry after N" and "Bad Request: too Many Requests: retry
after N" (lowercase leading 't'). The current case-sensitive check
silently misses the latter and the caller never sees a
TooMuchRequestsException.

Added `ignoreCase = true` to the contains(...) check and three
regression tests covering canonical, lowercase-initial, and
all-lowercase casings.

Closes #1008
2026-04-19 03:24:16 +03:00
InsanusMokrassar 16e94a1e1b Merge pull request #1038 from InsanusMokrassar/33.0.0
33.0.0
2026-04-16 17:43:38 +06:00
InsanusMokrassar 96a5508e9a refill changelog 2026-04-16 13:05:29 +06:00
InsanusMokrassar 83de9fd973 fix name of allowMultipleAnswers to allowsMultipleAnswers 2026-04-16 13:02:10 +06:00
InsanusMokrassar 4a0b890697 fill CHANGELOG.md, fix README.md, small fix in checkSendData to not throw error 2026-04-16 12:39:26 +06:00
InsanusMokrassar 0e481c3dd9 fix of custom emoji icons passing in setParams of WebApp and rewrite init errors to warnings in SendQuizPoll 2026-04-15 16:13:37 +06:00
InsanusMokrassar 176d0d419a fix hierarchy of ManagedBotUpdated 2026-04-14 19:59:52 +06:00
InsanusMokrassar 77bf7b6e89 fix of onManagedBotUpdated work 2026-04-14 19:50:54 +06:00
InsanusMokrassar 5337f8c7cc fix of username encoding in KeyboardButtonRequestManagedBot 2026-04-14 17:26:37 +06:00
InsanusMokrassar 57fa6fd597 add note about isAnonymous with allowAddingOptions 2026-04-13 15:45:25 +06:00
InsanusMokrassar 703538a6fa continue fix of fields absence 2026-04-13 14:49:48 +06:00
InsanusMokrassar 08877a8f47 continue fixing missing parts 2026-04-09 13:10:14 +06:00
InsanusMokrassar 8d3338b79a add support of pollOptionId in ReplyParameters and reply_to_poll_option_id 2026-04-08 19:02:25 +06:00
InsanusMokrassar 243a3ca626 add support of PollOptionAdded and PolloptionDeleted 2026-04-08 18:10:39 +06:00
InsanusMokrassar 277c329ab9 several calls fix 2026-04-07 23:44:13 +06:00
InsanusMokrassar e3ae85e067 Actualize PollAnswer 2026-04-07 00:23:31 +06:00
InsanusMokrassar ac51189694 reimplementation of PollOption and SendPoll 2026-04-07 00:16:04 +06:00
InsanusMokrassar cfd74eb58c add PollOptionPersistentId 2026-04-06 23:30:11 +06:00
InsanusMokrassar 78c476e4c6 add support of QuizPoll#correctOptionIds 2026-04-06 18:46:08 +06:00
InsanusMokrassar a5446b5adb add support of managed bots creation link 2026-04-06 16:32:26 +06:00
InsanusMokrassar 4b5aad2b85 add support of requestChat 2026-04-06 16:13:29 +06:00
InsanusMokrassar a0e748f9a9 add support of PreparedKeyboardButton and savePreparedKeyboardButton 2026-04-06 16:11:46 +06:00
InsanusMokrassar de13ddeb54 complete support of ManagedBotCreated and ManagedBotUpdated, add getManagedBotToken and replaceManagedBotToken 2026-04-06 15:47:38 +06:00
InsanusMokrassar b37dda6f47 add ManagedBotCreated and ManagedBotUpdated 2026-04-06 00:42:16 +06:00
InsanusMokrassar e604b7a3bf add support of KeyboardButtonRequestManagedBot 2026-04-05 21:28:10 +06:00
InsanusMokrassar 661b846a74 add support of canManageBots 2026-04-05 17:38:50 +06:00
InsanusMokrassar ce44203941 start 33.0.0 2026-04-05 17:38:20 +06:00
InsanusMokrassar ba65e01c84 Merge pull request #1033 from InsanusMokrassar/32.0.0
32.0.0
2026-03-08 15:10:48 +06:00
InsanusMokrassar 2a1bd229d6 partial replace of require with warning messages 2026-03-06 19:09:45 +06:00
InsanusMokrassar b30af48b8d improve readability of SetBusinessAccountUsername and fix its api 2026-03-06 18:44:35 +06:00
InsanusMokrassar 083fd1b682 returned boolean now returns unit 2026-03-06 00:39:54 +06:00
InsanusMokrassar a8410df038 fill changelog 2026-03-05 21:56:04 +06:00
InsanusMokrassar bd7e8ed55f update dependencies 2026-03-05 21:38:05 +06:00
InsanusMokrassar 8c6408bc2b start 32.0.0 2026-03-05 19:27:23 +06:00
InsanusMokrassar e5d18a421f Merge pull request #1032 from InsanusMokrassar/31.2.0
31.2.0
2026-03-04 19:38:06 +06:00
InsanusMokrassar d3c1859338 fix of #1027 and small fix of changelog for #1026 2026-03-03 17:55:40 +06:00
InsanusMokrassar e6d6bbdaa0 fix of #1026 2026-03-03 17:47:45 +06:00
InsanusMokrassar 75a977aebb start 31.2.0 2026-03-03 16:07:35 +06:00
InsanusMokrassar f48eb820bf Merge pull request #1031 from InsanusMokrassar/31.1.0
31.1.0
2026-03-02 19:22:43 +06:00
InsanusMokrassar 9f9d890831 fix of promoteChatAdministrator 2026-03-02 19:05:38 +06:00
InsanusMokrassar da662603b0 fill changelog and readme 2026-03-02 18:50:51 +06:00
InsanusMokrassar 2dd91f47d7 add helper method sender_tag for messages 2026-03-02 17:40:47 +06:00
InsanusMokrassar 8eb8e5ee1f add support of iconCustomEmojiId in BottomButton 2026-03-02 16:56:57 +06:00
InsanusMokrassar b533bab95f add support of users tags 2026-03-02 16:51:10 +06:00
InsanusMokrassar 4f97327d29 add support of date_time messages entities 2026-03-02 15:29:26 +06:00
InsanusMokrassar b17d7a868a start 31.1.0 2026-03-02 00:30:37 +06:00
InsanusMokrassar df695ceadb Merge pull request #1030 from InsanusMokrassar/31.0.1
31.0.1
2026-02-26 00:54:42 +06:00
InsanusMokrassar ac511d0aed make nanostarAmount in StarTransaction nullable 2026-02-25 22:10:19 +06:00
InsanusMokrassar 65cd359002 start 31.0.1 2026-02-25 22:01:55 +06:00
InsanusMokrassar 8d7005be80 try to update nmcp version 2026-02-24 18:24:39 +06:00
InsanusMokrassar a20368ee51 Merge pull request #1024 from InsanusMokrassar/31.0.0
31.0.0
2026-02-24 15:07:59 +06:00
InsanusMokrassar 744149a674 fill changelog 2026-02-24 15:02:25 +06:00
InsanusMokrassar 410183e315 add notes about support of new apis 2026-02-24 14:37:50 +06:00
InsanusMokrassar 9776a2474a fix of UniqueGiftModel 2026-02-24 14:09:49 +06:00
InsanusMokrassar aebc571307 upfill changelog 2026-02-24 14:02:37 +06:00
InsanusMokrassar 26c11d9d6b add OwnedGifts sealed interface 2026-02-24 12:37:07 +06:00
InsanusMokrassar c9be5041b8 check new fields and other things related to api updates in gifts 2026-02-20 17:49:16 +06:00
InsanusMokrassar f10cfdbe1e add support of getChatGifts and getUserGifts 2026-02-20 17:05:51 +06:00
InsanusMokrassar 83b4d2155f add is_burned support 2026-02-20 13:55:19 +06:00
InsanusMokrassar eccc687aec add rarity support 2026-02-20 13:06:53 +06:00
InsanusMokrassar 53e79b152e add support of unique gift colors 2026-02-20 12:54:21 +06:00
InsanusMokrassar b9157b1924 completed by chat and completed by user support 2026-02-20 12:45:34 +06:00
InsanusMokrassar e6aaa264f6 improvements of effectId in copyMessage and forwardMessage 2026-02-18 23:37:18 +06:00
InsanusMokrassar e6cb028a71 improve repostStory 2026-02-18 22:55:38 +06:00
InsanusMokrassar 10b796c88e fix support of rating info 2026-02-18 22:46:56 +06:00
InsanusMokrassar 62a4bf5195 small fill of CHANGELOG and fix of library version 2026-02-18 22:23:42 +06:00
InsanusMokrassar a0bb05ce4a add support of profile audios 2026-02-18 21:22:16 +06:00
InsanusMokrassar e02849ae5e add purchased_paid_media in updates list 2026-02-18 17:52:26 +06:00
InsanusMokrassar 4252db489a fix support of paid_message_star_count 2026-02-18 17:18:38 +06:00
InsanusMokrassar ac05fa0fe3 add support of SetMyProfilePhoto and RemoveMyProfilePhoto 2026-02-17 22:05:38 +06:00
InsanusMokrassar bd816b7847 realize ChatOwnerLeft and ChatOwnerChanged 2026-02-17 15:30:25 +06:00
InsanusMokrassar 407f2a8bf7 fix serialization of simple keyboard button 2026-02-17 12:09:23 +06:00
InsanusMokrassar 10b1c359fa extend support of styles and iconEmojiCustomId 2026-02-16 23:22:04 +06:00
InsanusMokrassar c4f2566b71 add support of style and iconEmojiCustomId 2026-02-16 22:57:45 +06:00
InsanusMokrassar 85fb7e42e5 fix RepostStory class 2026-02-16 22:39:18 +06:00
InsanusMokrassar d68c70e898 fix drafts flows signatures 2026-02-16 18:52:41 +06:00
InsanusMokrassar 14402f9283 improve drafts flows 2026-02-16 18:48:31 +06:00
InsanusMokrassar b734757062 add drafts flows 2026-02-16 18:24:29 +06:00
InsanusMokrassar fd9ad8dbf1 add drafts 2026-02-16 18:03:05 +06:00
InsanusMokrassar 734e6074ef update events triggers 2026-02-16 17:35:46 +06:00
InsanusMokrassar d642a04e01 update forum events 2026-02-16 17:26:35 +06:00
InsanusMokrassar ecd01c9254 classcasts and apiDump 2026-02-16 17:14:28 +06:00
InsanusMokrassar 8922b80cff fixes 2026-02-16 17:09:48 +06:00
InsanusMokrassar 50a7c9cae2 update forum topic events 2026-02-16 17:08:49 +06:00
InsanusMokrassar f7ee0828ce small improvements 2026-02-16 15:05:37 +06:00
InsanusMokrassar 0c87cf95eb improvements(?) in users api 2026-02-16 15:04:33 +06:00
InsanusMokrassar 9fea7390e8 add support of extended chat id in private chats 2026-02-15 23:51:39 +06:00
InsanusMokrassar 9f0ca8143c update microutils 2026-02-15 21:03:28 +06:00
InsanusMokrassar 9d879b90bb fix user rating 2026-02-15 15:14:18 +06:00
InsanusMokrassar 2a28f8ab39 fixes in common bot hierarchy 2026-02-15 14:47:47 +06:00
InsanusMokrassar 44ce84cb84 fixes? 2026-02-15 13:53:41 +06:00
InsanusMokrassar cea80ccee6 preview version of threads in privats 2026-02-15 13:22:17 +06:00
InsanusMokrassar e1848aa5c9 fix of hasTopicsEnabled and add support of allows_users_to_create_topics 2026-02-15 13:14:18 +06:00
InsanusMokrassar e40424b26a some additions(need to check all this commit) 2026-02-10 16:02:28 +06:00
InsanusMokrassar cc5056b685 make chats to support private forums 2026-01-07 23:19:12 +06:00
InsanusMokrassar 9713a668e2 start 31.0.0 2026-01-07 20:45:29 +06:00
InsanusMokrassar 90d7bdff56 Merge pull request #1020 from InsanusMokrassar/30.0.2
30.0.2
2025-11-23 17:44:13 +06:00
InsanusMokrassar 374f6a93bd hotifx of changelog 2025-11-23 17:43:58 +06:00
InsanusMokrassar 28b5fae760 fix of #1019 and improve longPollingFlow 2025-11-23 17:35:59 +06:00
InsanusMokrassar 97dae295d6 update dependencies 2025-11-23 16:55:54 +06:00
InsanusMokrassar 93597f3940 start 30.0.2 2025-11-23 14:25:58 +06:00
InsanusMokrassar f27caaecde Merge pull request #1014 from InsanusMokrassar/30.0.1
30.0.1
2025-11-07 14:58:22 +06:00
InsanusMokrassar b71b1414b9 fix of target version 2025-10-22 01:52:00 +06:00
InsanusMokrassar f8ceab7640 small hotfix 2025-10-22 01:51:20 +06:00
InsanusMokrassar 68897c89c3 start 30.0.1 2025-10-21 23:27:43 +06:00
InsanusMokrassar fb08b7044e Merge pull request #1012 from InsanusMokrassar/30.0.0
30.0.0
2025-10-21 22:25:26 +06:00
InsanusMokrassar 7ed021b5bc fill changelog 2025-10-21 22:24:58 +06:00
InsanusMokrassar 1cff533265 update dependencies and fix (?) build 2025-10-20 22:44:16 +06:00
InsanusMokrassar 8b08e11441 migrate onto 30.0.0 2025-10-20 21:21:31 +06:00
InsanusMokrassar b69c8f1d8f update dependencies
com.github.ben-manes.versions: 0.52.0 -> 0.53.0
2025-10-19 23:33:10 +06:00
InsanusMokrassar fdf393405c start 29.1.0 2025-10-19 22:57:12 +06:00
InsanusMokrassar c951fc3353 Merge pull request #1010 from InsanusMokrassar/29.0.1
29.0.1
2025-10-13 23:10:42 +06:00
InsanusMokrassar 02f42c3f52 fix of name for publishing in nexus 2025-10-12 21:46:35 +06:00
InsanusMokrassar 0105e46a5f apiDump 2025-10-12 21:22:34 +06:00
InsanusMokrassar 325a189ebb fix of #917 2025-10-12 21:09:38 +06:00
InsanusMokrassar 1d021c8450 start 29.0.1 2025-10-12 21:07:55 +06:00
InsanusMokrassar 6eb9379e0a Merge pull request #998 from InsanusMokrassar/29.0.0
29.0.0
2025-09-25 15:07:02 +06:00
InsanusMokrassar 2d97d10ee1 fill changelog and readme 2025-09-25 14:25:22 +06:00
InsanusMokrassar 4b7d052ece rewrite firstOf 2025-09-25 14:25:08 +06:00
InsanusMokrassar df512a917b Merge branch 'master' into 29.0.0 2025-09-23 18:21:13 +06:00
InsanusMokrassar 67cd836466 Merge pull request #1005 from InsanusMokrassar/28.0.3
28.0.3
2025-09-23 18:17:11 +06:00
InsanusMokrassar eb1fb16117 add support of custom publishing type 2025-09-23 18:13:04 +06:00
InsanusMokrassar ee4cf7c626 add passing of default engines in HttpClient constructors 2025-09-23 17:53:21 +06:00
InsanusMokrassar 74d8b31437 start 28.0.3 2025-09-23 17:46:54 +06:00
InsanusMokrassar 3f61cfdefb fix of paid message building 2025-09-23 16:12:40 +06:00
InsanusMokrassar 91339fc839 rewrite firstof 2025-09-23 13:37:59 +06:00
InsanusMokrassar 2e23f48350 fixes in CommonChannelDirectMessagesEventMessage creating 2025-09-23 12:47:58 +06:00
InsanusMokrassar f6211d33bb change events hierarchy of ChannelDirectMessagesEvent 2025-09-23 12:16:30 +06:00
InsanusMokrassar 2ff11ad73c improve messages hierarchy 2025-09-22 12:19:34 +06:00
InsanusMokrassar 2695b03968 fix of direct message typing 2025-09-17 23:31:08 +06:00
InsanusMokrassar 03d23a938e fixes of inheritance of messages for direct ones 2025-09-17 22:46:51 +06:00
InsanusMokrassar 719fb1f4a9 complete adding of suggestedPostParameters 2025-09-17 20:21:55 +06:00
InsanusMokrassar c3c69f3e7f some step 2025-09-17 16:30:41 +06:00
InsanusMokrassar 4fb662c560 third stage of suggested_post_parameters implementation 2025-09-15 18:14:51 +06:00
InsanusMokrassar cc967c2981 add suggestedPostParameters in contents 2025-09-15 17:53:59 +06:00
InsanusMokrassar aa7bf426f1 second stage of suggested_post_parameters implementation 2025-09-15 17:49:33 +06:00
InsanusMokrassar 0b2735ca1e add support of suggestedPostParameters in requests 2025-09-15 16:46:44 +06:00
InsanusMokrassar 48bfa76b9e implemented direct message thread id????? 2025-09-15 12:32:35 +06:00
InsanusMokrassar 79a0e202d8 fix of directMessageThreadId passes 2025-09-15 12:32:35 +06:00
InsanusMokrassar 152bf2af02 fix of apiDump 2025-09-15 12:32:35 +06:00
InsanusMokrassar 0163e5ce8c fix of apiDump 2025-09-15 00:32:25 +06:00
InsanusMokrassar 62b4a21650 some progress on support of directMessageThreadId 2025-09-15 00:12:53 +06:00
InsanusMokrassar f312e04c0d add directMessageThreadId parameter in create resend 2025-09-14 23:19:54 +06:00
InsanusMokrassar 1c36c0a2f7 add directMessageThreadId in factories of sending classes 2025-09-14 15:14:38 +06:00
InsanusMokrassar bd73852253 let forwardMessage(s) extend OptionallyDirectMessageThreadRequest 2025-09-14 14:48:20 +06:00
InsanusMokrassar fbb2511fca Merge branch 'master' into 29.0.0 2025-09-14 14:43:49 +06:00
InsanusMokrassar f22d571484 Merge pull request #1003 from InsanusMokrassar/28.0.2
28.0.2
2025-09-10 15:59:20 +06:00
InsanusMokrassar 9be5ebb036 refactor changelog 2025-09-10 15:58:43 +06:00
InsanusMokrassar da4cd527ec fix of #1002 2025-09-10 15:45:45 +06:00
InsanusMokrassar 4117288b21 fix of #1001 2025-09-10 15:33:07 +06:00
InsanusMokrassar 458bdd3ee4 start 28.0.2 2025-09-10 15:29:55 +06:00
InsanusMokrassar 8101c4c9fb add publisher_chat support 2025-09-09 18:00:53 +06:00
InsanusMokrassar 255416f72a add support of appriveSuggestedPost and declineSuggestedPost 2025-09-09 17:34:48 +06:00
InsanusMokrassar 6eb7563c70 add support of is_paid_post field 2025-09-09 17:15:59 +06:00
InsanusMokrassar b9bdf7cc72 add is_paid_post as simple boolean 2025-09-09 17:12:16 +06:00
InsanusMokrassar 4a8e1ee7b7 upfix for updating of chat member rights 2025-09-09 17:02:54 +06:00
InsanusMokrassar 23bfe02e6f add support of can_manage_direct_messages right 2025-09-09 16:58:47 +06:00
InsanusMokrassar 658c19092c Merge branch 'master' into 29.0.0 2025-09-04 16:39:36 +06:00
InsanusMokrassar d469a88791 Merge pull request #1000 from InsanusMokrassar/28.0.1
28.0.1
2025-09-04 16:38:10 +06:00
InsanusMokrassar 514bc699dd update dependencies 2025-09-04 16:37:57 +06:00
InsanusMokrassar bec72b8cf8 fix of default thread id 2025-09-04 16:24:54 +06:00
InsanusMokrassar fb0014dffa start 28.0.1 2025-09-04 16:10:16 +06:00
InsanusMokrassar ebc1c07404 small improvements 2025-09-04 16:09:30 +06:00
InsanusMokrassar 989d33acb8 start separate channel direct messages thread id insttead of one merged message thread id 2025-09-03 19:44:42 +06:00
InsanusMokrassar 5aa6ac3320 separate messageThreadId with direct_messages_topic in chats creation 2025-08-25 16:48:01 +06:00
InsanusMokrassar 048f65b8d4 Partially add DirectMessagesTopic 2025-08-25 16:39:23 +06:00
InsanusMokrassar b69be31362 add a lot of things from update 2025-08-25 15:43:42 +06:00
InsanusMokrassar b92288d7cc add realization of several suggested post events 2025-08-23 16:09:17 +06:00
InsanusMokrassar 6c02d57197 add support of reply_to_checklist_task_id 2025-08-19 12:59:29 +06:00
InsanusMokrassar e977c865ea add ReplyParameters#checklistTaskId -.- 2025-08-19 12:30:12 +06:00
InsanusMokrassar 18b459fdf8 start 29.0.0 2025-08-19 11:46:36 +06:00
InsanusMokrassar 2bbd2e0679 Merge pull request #993 from InsanusMokrassar/28.0.0
28.0.0
2025-08-11 15:55:27 +06:00
InsanusMokrassar bcf7e835e6 add breaking changes note 2025-08-11 15:55:01 +06:00
InsanusMokrassar 4dd9740fec fill changelog and add kdocs for firstOf 2025-08-11 15:50:06 +06:00
InsanusMokrassar 2182e44bc2 add overloads for containsCommand 2025-08-11 15:28:21 +06:00
InsanusMokrassar 08c885de2f add extension of containsCommand 2025-08-11 01:02:22 +06:00
InsanusMokrassar facecf35fb add firstOf 2025-08-11 00:47:35 +06:00
InsanusMokrassar b13f24153f add filtering of waiters with commands for other usernames 2025-08-10 23:28:30 +06:00
InsanusMokrassar 12ee862dad small fix in filter of commands 2025-08-10 23:03:17 +06:00
InsanusMokrassar 0726574852 improvements in copying of behaviour contexts 2025-08-10 22:50:21 +06:00
InsanusMokrassar 9a00193e59 improvements in data filling 2025-08-10 22:47:52 +06:00
InsanusMokrassar 0fd8c1e2f3 add filtering out of other bots commands by default 2025-08-10 18:24:34 +06:00
InsanusMokrassar c09d089707 add lazy loadable bot info 2025-08-10 18:05:48 +06:00
InsanusMokrassar ff39271afd start 28.0.0 2025-08-10 17:02:41 +06:00
InsanusMokrassar 35a4edd643 start 27.2.0 2025-08-10 16:51:23 +06:00
InsanusMokrassar ba647ee5ab Update README.md 2025-08-06 17:46:43 +06:00
InsanusMokrassar d2924ce1f2 Merge pull request #992 from InsanusMokrassar/27.1.2
27.1.2
2025-08-06 15:59:17 +06:00
InsanusMokrassar 72781487f0 add note about Something web wrong 2025-08-06 14:00:29 +06:00
InsanusMokrassar de435e5dbc Merge pull request #986 from BlackBaroness/patch-1
fix: typo in default error messages
2025-08-06 13:57:59 +06:00
InsanusMokrassar f975754058 try to fix cancelling on timeout for long polling 2025-08-06 13:14:22 +06:00
InsanusMokrassar 0f7536a21c start 27.1.2 2025-08-06 13:10:42 +06:00
InsanusMokrassar d4c085c9b6 Merge pull request #991 from InsanusMokrassar/27.1.1
27.1.1
2025-08-04 01:59:53 +06:00
InsanusMokrassar 667c49f13d update dependencies 2025-08-04 01:36:56 +06:00
InsanusMokrassar e1d9ebff90 jvmApiDump 2025-08-04 01:33:12 +06:00
InsanusMokrassar fbc7088dad fix of #990 2025-08-04 01:25:16 +06:00
InsanusMokrassar 4ba9c8ee97 start 27.1.1 2025-08-04 01:24:02 +06:00
InsanusMokrassar 92611b5c26 Merge pull request #985 from InsanusMokrassar/27.1.0
27.1.0
2025-07-28 20:23:07 +06:00
InsanusMokrassar 2e1c0d41ec update service dependencies 2025-07-28 20:09:58 +06:00
InsanusMokrassar 3ce56745f4 add fileLinkUrlMapper to all callers of TelegramAPIUrlsKeeper constructors 2025-07-28 20:04:59 +06:00
InsanusMokrassar 1bc9ee4d5a add TelegramAPIUrlsKeeper#fileLinkUrlMapper and fill readme Bot API Server Notice 2025-07-27 15:06:47 +06:00
BlackBaroness 0650fc594f fix: typo in default error messages 2025-07-27 07:34:56 +03:00
InsanusMokrassar 2f4de37489 fix build 2025-07-25 21:53:08 +06:00
InsanusMokrassar cec5a0af12 improve support of local bot api servers 2025-07-25 21:35:38 +06:00
InsanusMokrassar 5e5dc6b36b start 27.1.0 2025-07-25 21:00:44 +06:00
InsanusMokrassar 19265357a2 Merge pull request #981 from InsanusMokrassar/27.0.0
27.0.0
2025-07-22 20:32:37 +06:00
InsanusMokrassar 49c2836e62 fill changelog and update dependencies 2025-07-22 19:42:23 +06:00
InsanusMokrassar f7476188eb so, now? 2025-07-21 22:55:36 +06:00
InsanusMokrassar 2ba447b126 fix of cancellation exception throwing? 2025-07-21 20:41:51 +06:00
InsanusMokrassar 3bd4fab3fe migrate onto 27.0.0 due to potentially breaking changes 2025-07-12 15:44:39 +06:00
InsanusMokrassar 9e4d7dd9f9 WAT A HUGE REFACTOR 2025-07-12 15:42:48 +06:00
InsanusMokrassar 586a61157d update dependencies 2025-07-12 13:20:02 +06:00
InsanusMokrassar 045265f0f8 update dependencies 2025-07-12 13:06:35 +06:00
InsanusMokrassar c125eadaa4 Update README.md 2025-07-10 17:39:40 +06:00
InsanusMokrassar 3dd0a91c54 Merge pull request #979 from InsanusMokrassar/26.1.0
26.1.0
2025-07-10 16:44:46 +06:00
InsanusMokrassar 2ecd42c859 fill changelog (-.-) and remove redundant file 2025-07-10 16:13:19 +06:00
InsanusMokrassar 3857950141 fixes 2025-07-08 18:38:12 +06:00
InsanusMokrassar 6d5bedd315 add workarounds for checklists 2025-07-08 11:47:05 +06:00
InsanusMokrassar 69a9e8f820 several fixes 2025-07-08 11:43:13 +06:00
InsanusMokrassar 6d8693a003 add typed origin, nextTransferDate and last_resale_star_count in GiftSentOrReceived 2025-07-07 22:18:16 +06:00
InsanusMokrassar c990d987f5 add support of general changes 2025-07-07 21:48:23 +06:00
InsanusMokrassar b8530f14ca add checklist as field in ExternalReplyInfo and add support of EditMessageChecklist 2025-07-07 21:29:29 +06:00
InsanusMokrassar db8bac9b52 add ChecklistTasksAdded and ChecklistTasksDone events 2025-07-07 21:19:17 +06:00
InsanusMokrassar e53b3b8198 improve support of send checklist 2025-07-07 21:03:04 +06:00
InsanusMokrassar 71ccfc88cc start add SendChecklist 2025-07-07 16:25:21 +06:00
InsanusMokrassar dd2923f92d complete base checklists? 2025-07-07 15:39:48 +06:00
InsanusMokrassar ff78153591 small improvements 2025-07-07 15:18:22 +06:00
InsanusMokrassar e2ce9cfebf preview version of inputs for tasks 2025-07-07 14:38:39 +06:00
InsanusMokrassar 0a01d2567e add checklist 2025-07-04 11:53:16 +06:00
InsanusMokrassar e4fb45c09b start realize Bots API 9.1 2025-07-03 22:25:47 +06:00
InsanusMokrassar db0df975c7 start 26.1.0 2025-07-03 22:07:16 +06:00
InsanusMokrassar 2003b314a3 update maven badge 2025-06-30 14:00:07 +06:00
InsanusMokrassar 55a78375be Merge pull request #977 from centralhardware/PR1
docs: make buildEntities usage more obvious to anyone not familiar with Telegram Bot API or ktgbotapi
2025-06-23 21:20:33 +06:00
alex 256607e336 docs: make buildEntities usage more obvious to anyone not familiar with Telegram Bot API or ktgbotapi 2025-06-23 18:58:08 +08:00
InsanusMokrassar 92f2a5afdb Merge pull request #974 from InsanusMokrassar/26.0.0
26.0.0
2025-06-15 19:46:05 +06:00
InsanusMokrassar 3affcf4399 Update build.gradle 2025-06-15 19:37:59 +06:00
InsanusMokrassar 67dfa19a1b Update CHANGELOG.md 2025-06-15 19:37:26 +06:00
InsanusMokrassar 86e83f7f1a refactor: expectFlow 2025-06-15 12:24:23 +06:00
InsanusMokrassar 429fc5d2f9 small improvements in long polling and behaviour buildr 2025-06-15 11:38:17 +06:00
InsanusMokrassar d19e6ad4e0 fill changelog 2025-06-15 10:34:42 +06:00
InsanusMokrassar 134145f441 fix version in gradle.properties -.- 2025-06-14 23:41:23 +06:00
InsanusMokrassar ef76fe52ca fill changelog 2025-06-14 19:40:05 +06:00
InsanusMokrassar bab69f523a small refactor 2025-06-14 19:36:17 +06:00
InsanusMokrassar 91f4d3bf24 build fix :) 2025-06-14 19:33:34 +06:00
InsanusMokrassar 3e316dfde0 fix in build?:) 2025-06-14 19:28:58 +06:00
InsanusMokrassar 1ef49ad48c remove suspend in all triggers 2025-06-14 19:11:18 +06:00
InsanusMokrassar 9297824dc3 make changes almost not breaking 2025-06-14 17:58:58 +06:00
InsanusMokrassar d02ed592d8 fix of build 2025-06-14 16:31:11 +06:00
InsanusMokrassar 6ea9a28c7c start migration to non-suspend expect flow 2025-06-14 11:36:17 +06:00
InsanusMokrassar 88fc4fc444 fix of build 2025-06-13 14:05:56 +06:00
InsanusMokrassar dd0de3b6d4 add RequestsExecutor.Log 2025-06-13 13:53:44 +06:00
InsanusMokrassar 838fff8207 fill changelog 2025-06-11 09:25:22 +06:00
InsanusMokrassar 751a77f6d8 start 25.0.2 2025-06-11 08:58:56 +06:00
InsanusMokrassar 222fe7594f Merge pull request #972 from InsanusMokrassar/25.0.1
25.0.1
2025-06-08 18:54:25 +06:00
InsanusMokrassar ed6d4d07c6 create 25.0.1 branch for release 2025-06-08 18:53:30 +06:00
InsanusMokrassar 78d9ce8d19 add nmcp 2025-06-08 18:52:40 +06:00
InsanusMokrassar 345009da32 Update build.gradle 2025-06-08 13:49:29 +06:00
InsanusMokrassar de47497223 Merge pull request #965 from InsanusMokrassar/25.0.0
25.0.0
2025-06-01 22:36:53 +06:00
InsanusMokrassar 7477625380 fill changelog and readme 2025-06-01 22:32:58 +06:00
InsanusMokrassar 970abf8cde more improvements :) 2025-06-01 22:07:35 +06:00
InsanusMokrassar 5a7741faf6 fix of captionLength 2025-06-01 22:03:03 +06:00
InsanusMokrassar 8aa29e56d3 add extensions splitFor(Text|Caption) and fix captionLength 2025-06-01 22:01:28 +06:00
InsanusMokrassar dab5e072d0 fixes in GiftPremiumSubscription and TransferBusinessAccountStars 2025-06-01 21:47:40 +06:00
InsanusMokrassar 94078939d1 add EditStory with builder of text 2025-06-01 21:24:17 +06:00
InsanusMokrassar 824d3862e3 fixes in stories 2025-06-01 20:23:38 +06:00
InsanusMokrassar 44f92e8d6c fixes in new multipart api 2025-06-01 19:24:58 +06:00
InsanusMokrassar ddb79c0d8d update publishing way 2025-05-31 17:04:51 +06:00
InsanusMokrassar a9562cc8f9 fix signature of removeBusinessAccountProfilePhoto 2025-05-31 09:48:38 +06:00
InsanusMokrassar 8a351d5be0 one more fix in SetBusinessAccountUsername 2025-05-25 19:24:41 +06:00
InsanusMokrassar 8cd5659b7b updates in Username 2025-05-25 19:24:41 +06:00
InsanusMokrassar 1474a07b9e updates in Username 2025-05-25 18:28:45 +06:00
InsanusMokrassar c13a0d3193 add special error type for device and secure sorages 2025-05-25 13:33:34 +06:00
InsanusMokrassar 172f49fa6b update publication scripts 2025-05-25 12:41:34 +06:00
InsanusMokrassar 4d42972a7e add css variables names in webapps 2025-05-25 12:30:16 +06:00
InsanusMokrassar c0883d0180 update github publishing part 2025-05-16 12:41:45 +06:00
InsanusMokrassar e7367da3cb add support of PostStory and EditStory 2025-05-10 22:32:38 +06:00
InsanusMokrassar effd12711f add support of transferGift 2025-05-10 17:59:29 +06:00
InsanusMokrassar ef1d2e8242 add support of convertGiftToStars and upgradeGift 2025-05-10 17:53:49 +06:00
InsanusMokrassar 881763f3af add support of gift things 2025-05-10 13:25:21 +06:00
InsanusMokrassar d36b11c002 add support of getBusinessAccountGifts 2025-05-10 10:58:17 +06:00
InsanusMokrassar d2395e836c add support of setBusinessAccountGiftSettings 2025-05-10 10:35:26 +06:00
InsanusMokrassar c8c008edd3 add support of deleteStory 2025-05-10 10:28:32 +06:00
InsanusMokrassar 3b4fa06924 several fixes of build: jvmApiDump, TransactionType.Unknown @JvmInline 2025-05-10 10:17:15 +06:00
InsanusMokrassar 5d428a5e54 add LocationAddress and StoryAreaPosition 2025-05-01 16:06:16 +06:00
InsanusMokrassar 8964e08ce6 add support of InputStoryContent 2025-05-01 15:38:07 +06:00
InsanusMokrassar 745168d181 refactor: small change of arguments passing order in TransactionPartner serializer 2025-04-30 18:18:54 +06:00
InsanusMokrassar a408c6c7c7 overwrite TransactionType 2025-04-30 08:46:13 +06:00
InsanusMokrassar e0f5e9b640 Merge pull request #967 from bpavuk/api-v9.0-premium
API v9.0 - Telegram Premium
2025-04-30 08:22:07 +06:00
root 0331ff2f42 make TelegramBot.giftPremiumSubscription parseMode parameter nullable 2025-04-30 08:21:11 +06:00
InsanusMokrassar a21d0b56db start add InputStoryContent 2025-04-23 17:58:01 +06:00
Bodya 6ea8afee8f Merge branch '25.0.0' into api-v9.0-premium 2025-04-22 22:48:26 +03:00
Bodya 8799aeca26 fix: corrected method name 2025-04-21 10:34:21 +03:00
InsanusMokrassar c610f4eab2 update classcasts 2025-04-21 12:16:17 +06:00
InsanusMokrassar 92cd2a3def Merge pull request #966 from bpavuk/api-v9.0-gifts
API v9.0 - Gifts
2025-04-21 10:14:10 +06:00
InsanusMokrassar 03d158b03b Merge branch '25.0.0' into api-v9.0-gifts 2025-04-21 10:13:06 +06:00
bpavuk 608fde4139 refactor: replace transactionType String with TransactionType enum 2025-04-19 16:11:44 +03:00
InsanusMokrassar 9e56a6cc1a small updates in DeviceStorage 2025-04-19 13:01:52 +06:00
InsanusMokrassar c0e3c1d02f update classcasts and api dumps 2025-04-19 12:58:18 +06:00
InsanusMokrassar 341a527d27 add support of paid messages 2025-04-19 12:56:10 +06:00
bpavuk 8d6d70a06a refactor: replaced Gift with Gift.Regular across APIs and data models 2025-04-17 18:31:56 +03:00
bpavuk 67fb552d01 refactor: moved unique gift properties into separate package 2025-04-17 18:18:17 +03:00
bpavuk 93e937aa6a refactor: merged UniqueGift and regular Gift types into one interface 2025-04-17 18:16:52 +03:00
bpavuk 09dee188d2 refactor: merged GiftInfo and UniqueGiftInfo into one sealed interface 2025-04-17 17:38:16 +03:00
bpavuk 29c6bb5dac fix: made entities field optional for GiftInfo 2025-04-17 17:27:34 +03:00
InsanusMokrassar c266ab0120 add support of DeviceStorage and SecureStorage 2025-04-17 18:56:32 +06:00
bpavuk b407fc5c86 feat: added the giftPremiumSubscription method 2025-04-16 19:49:49 +03:00
bpavuk 1bde43ceaf feat: added the transactionType field to TransactionPartner.User 2025-04-16 18:51:55 +03:00
bpavuk 389a508fa7 feat: added premiumSubscriptionDuration field to TransactionPartner 2025-04-16 18:36:02 +03:00
bpavuk 69c2586b50 aider init 2025-04-16 18:20:03 +03:00
bpavuk 7e80f4edac fix: removed leftovers of merge conflict resolving on GitHub 2025-04-16 17:57:27 +03:00
Bodya 99987c3f51 Merge branch '25.0.0' into api-v9.0-gifts 2025-04-16 16:37:24 +03:00
bpavuk 713130fd13 fix: brought back the canReceiveGifts field, marked as deprecated 2025-04-16 16:34:33 +03:00
InsanusMokrassar deb8d7b43a add api bindings to new requests 2025-04-16 18:42:13 +06:00
InsanusMokrassar b604444f7d add core requests for business account (excluding gifts) 2025-04-16 18:07:45 +06:00
Bodya cb6127bf91 fix: accepted_gift_types field is not optional anymore 2025-04-13 17:14:24 +03:00
Bodya d40919f099 style: separated annotations and values with line breaks in GiftInfo.kt 2025-04-13 17:11:31 +03:00
Bodya 7cb576e6b1 fix: fixed defaults in AcceptedGiftTypes 2025-04-13 17:10:10 +03:00
bpavuk b53fb8da36 feat: added constructor to GiftInfo 2025-04-13 16:42:28 +03:00
bpavuk 03ea8dfe7f fix: removed useless docs 2025-04-13 16:37:07 +03:00
bpavuk 314c8d9ad1 fix: using RGBColor abstractions instead of raw Int values now. 2025-04-13 16:34:41 +03:00
bpavuk 6fceee4199 fix: moved classes related to unique gifts to appropriate packages 2025-04-13 16:33:31 +03:00
bpavuk e720da708c fix: moved AcceptedGiftTypes.kt to the appropriate package 2025-04-13 16:32:47 +03:00
bpavuk d65706631f Merge remote-tracking branch 'origin/api-v9.0-gifts' into api-v9.0-gifts
# Conflicts:
#	tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftInfo.kt
2025-04-13 16:31:35 +03:00
bpavuk 3312b64564 fix: added default AcceptedGiftTypes in Extended.kt 2025-04-13 16:30:37 +03:00
bpavuk 1bfe431393 fix: added defaults to AcceptedGiftTypes 2025-04-13 16:27:52 +03:00
bpavuk 6485353704 fix: UniqueGiftInfo constructor is now public 2025-04-13 16:27:04 +03:00
bpavuk 46a1ed27b7 feat: implemented UniqueGiftInfo class 2025-04-13 15:58:36 +03:00
bpavuk 9f3024476c feat: implemented GiftInfo class 2025-04-13 15:55:36 +03:00
bpavuk 93d0e009bb feat: replaced canReceiveGifts with acceptedGiftTypes and AcceptedGiftTypes class 2025-04-13 15:49:05 +03:00
bpavuk (aider) ef60549e1c feat: Add AcceptedGiftTypes data class and related constants 2025-04-13 14:38:25 +03:00
bpavuk (aider) 2ac83156f6 feat: Add UniqueGift type with related fields and constants 2025-04-13 14:35:37 +03:00
bpavuk (aider) 4c9d888668 feat: Add UniqueGiftBackdrop type 2025-04-13 14:32:46 +03:00
bpavuk (aider) cd3ba8f480 feat: Add UniqueGiftBackdropColors data class 2025-04-13 14:30:33 +03:00
bpavuk (aider) 99559f477e feat: Add UniqueGiftModel type 2025-04-13 14:30:33 +03:00
bpavuk (aider) a3949c752d feat: Add UniqueGiftSymbol data type 2025-04-13 14:17:37 +03:00
InsanusMokrassar fd48a52266 add BusinessBotRights 2025-04-13 09:28:41 +06:00
InsanusMokrassar 3e0036f7df start 25.0.0 2025-04-13 09:05:08 +06:00
InsanusMokrassar 2978932c87 Merge pull request #957 from InsanusMokrassar/24.0.2
24.0.2
2025-03-26 10:15:11 +06:00
InsanusMokrassar c773736fb8 Update CHANGELOG.md 2025-03-26 10:12:19 +06:00
InsanusMokrassar 8a3a05ef12 fix of cancelling absence for subchains which become out of FSM 2025-03-26 09:45:30 +06:00
InsanusMokrassar 0afbe8ef2d update dependencies 2025-03-25 18:56:59 +06:00
InsanusMokrassar 3f4018f969 update KSLog part of library 2025-03-03 09:25:19 +06:00
InsanusMokrassar 097d82b4b4 start 24.0.2 2025-03-03 08:59:16 +06:00
InsanusMokrassar 7c2a379161 Merge pull request #956 from InsanusMokrassar/24.0.1
24.0.1
2025-03-01 15:05:23 +07:00
InsanusMokrassar ba5f76e8cd fix of EditChatMessageMedia 2025-03-01 14:04:08 +06:00
InsanusMokrassar 8aec920a15 start 24.0.1 2025-03-01 12:57:35 +06:00
InsanusMokrassar c92bd33ba1 Merge pull request #952 from InsanusMokrassar/24.0.0
24.0.0
2025-02-20 22:34:35 +06:00
InsanusMokrassar 51927974f5 ForumContentMessage.threadCreatingInfo 2025-02-20 11:54:41 +06:00
InsanusMokrassar 9350f87e19 update dependencies 2025-02-20 09:00:01 +06:00
InsanusMokrassar 6cb9950b36 fix of subcontextUpdatesFilter 2025-02-18 23:09:28 +06:00
InsanusMokrassar 974c2e883f start 24.0.0 2025-02-18 23:04:47 +06:00
InsanusMokrassar af6f98fd56 Update FUNDING.yml 2025-02-18 09:15:13 +06:00
InsanusMokrassar 75a2b2c282 Merge pull request #951 from InsanusMokrassar/23.2.1
23.2.1
2025-02-17 21:16:15 +06:00
InsanusMokrassar d66d4b4209 jvmApiDump 2025-02-17 13:18:55 +06:00
InsanusMokrassar 9d54820fd7 fill changelog 2025-02-17 13:17:26 +06:00
InsanusMokrassar 1876df2c2d fix of year in Birthdate 2025-02-17 13:16:10 +06:00
InsanusMokrassar d818592cd3 start 23.2.1 2025-02-17 13:14:03 +06:00
InsanusMokrassar c29737b6b3 update changelog and readme 2025-02-15 20:53:28 +06:00
InsanusMokrassar 46243a21eb Merge pull request #949 from InsanusMokrassar/23.2.0
23.2.0
2025-02-15 14:28:08 +06:00
InsanusMokrassar d5f45ead59 correct microutils version 2025-02-15 10:27:15 +06:00
InsanusMokrassar 5a696cdac0 fixes 2025-02-15 09:49:18 +06:00
InsanusMokrassar 80955eeb55 jvmApiDump, once more :) 2025-02-15 09:06:25 +06:00
InsanusMokrassar 6ee93e2d68 jvmApiDump 2025-02-14 21:35:49 +06:00
InsanusMokrassar d4490dec75 potentially cover new update of Bot API 2025-02-14 21:01:47 +06:00
InsanusMokrassar 7d3e9325f1 add support of TransactionPartnerChat 2025-02-14 18:42:48 +06:00
InsanusMokrassar 31a66eb8e6 add support of can_send_gift 2025-02-14 18:36:20 +06:00
InsanusMokrassar b3b9070cd6 add support for sending of gifts to chats 2025-02-13 12:17:05 +06:00
InsanusMokrassar 3504776344 update dependnecies 2025-02-13 11:39:58 +06:00
InsanusMokrassar f22f69534a start 23.2.0 2025-02-13 09:14:39 +06:00
InsanusMokrassar a9c1d7b33c Merge pull request #938 from InsanusMokrassar/renovate/org.jetbrains.kotlinx-kotlinx-serialization-json-1.x
Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.8.0
2025-02-10 16:40:00 +06:00
renovate[bot] 376ef0750c Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.8.0 2025-02-10 10:38:11 +00:00
InsanusMokrassar cdf93e0d12 Merge pull request #944 from InsanusMokrassar/23.1.2
23.1.2
2025-01-29 12:56:51 +06:00
InsanusMokrassar 8c7261fda9 update dependencies 2025-01-29 12:39:36 +06:00
InsanusMokrassar 82acc8cb1f start 23.1.2 2025-01-29 12:37:58 +06:00
InsanusMokrassar 4ec1532597 Merge pull request #942 from InsanusMokrassar/23.1.1
23.1.1
2025-01-27 09:46:48 +06:00
InsanusMokrassar 13bfe681d8 jvmApiDump 2025-01-27 09:43:47 +06:00
InsanusMokrassar 5bbbcdb529 update CHANGELOG 2025-01-27 09:18:10 +06:00
InsanusMokrassar 7f9d6ce626 update microutils 2025-01-27 09:17:12 +06:00
InsanusMokrassar 71b944f9cc replace removeFirst with removeAt(0) in createTextSources 2025-01-27 09:09:06 +06:00
InsanusMokrassar d9d68749f1 start 23.1.1 2025-01-27 09:08:28 +06:00
InsanusMokrassar 561aad2274 Merge pull request #937 from InsanusMokrassar/23.1.0
23.1.0
2025-01-03 09:39:59 +06:00
InsanusMokrassar 6a3e95c488 fix in SendGift 2025-01-03 09:32:02 +06:00
InsanusMokrassar a09b3809e2 update telegram bot api support badge 2025-01-03 09:29:15 +06:00
InsanusMokrassar 427b5775a2 add support of verification methods 2025-01-03 09:25:36 +06:00
InsanusMokrassar d222987fc7 remove hide_url from InlineQueryResultArticle 2025-01-03 09:09:03 +06:00
InsanusMokrassar d211afa26a add support of pay_for_upgrade and jvmApiDump 2025-01-03 09:01:17 +06:00
InsanusMokrassar 9952b6c6ae add upgrade_star_count to Gift and fix serialization of gift 2025-01-03 08:53:40 +06:00
InsanusMokrassar 840c6b02a4 start 23.1.0 2025-01-02 10:30:52 +06:00
InsanusMokrassar a6f91d5600 Merge pull request #935 from InsanusMokrassar/renovate/validator
Update dependency org.jetbrains.kotlinx.binary-compatibility-validator to v0.17.0
2024-12-26 15:40:08 +06:00
InsanusMokrassar 8ec0c8804b update link to remote url in dokka 2024-12-26 09:05:11 +06:00
InsanusMokrassar 2d08c447bc Merge pull request #934 from InsanusMokrassar/23.0.0
23.0.0
2024-12-25 11:17:34 +06:00
InsanusMokrassar 9a0793d81c rename old strikethrough factory 2024-12-25 11:09:16 +06:00
InsanusMokrassar a95f556a5c jvmApiDump 2024-12-21 10:27:15 +06:00
InsanusMokrassar f774b11de4 update dependencies 2024-12-21 10:10:30 +06:00
renovate[bot] 5164903d05 Update dependency org.jetbrains.kotlinx.binary-compatibility-validator to v0.17.0 2024-12-19 19:18:44 +00:00
InsanusMokrassar adaedb8040 text sources factories renames 2024-12-19 16:31:42 +06:00
InsanusMokrassar 9b4b60eb33 start 23.0.0 2024-12-19 16:30:31 +06:00
InsanusMokrassar b90f8ec389 Merge pull request #928 from InsanusMokrassar/22.0.0
22.0.0
2024-12-08 13:34:11 +06:00
InsanusMokrassar e95550a6eb rename subscriptionPayment 2024-12-08 13:24:34 +06:00
InsanusMokrassar 696219df24 add api methods for setUserEmojiStatus 2024-12-08 12:51:16 +06:00
InsanusMokrassar 27241fad32 add default for device orientation start 2024-12-08 11:40:09 +06:00
InsanusMokrassar a034fa18d7 fixes in status info 2024-12-08 10:40:09 +06:00
InsanusMokrassar adcaffe115 add sealed workaround for webapp event type 2024-12-08 10:26:53 +06:00
InsanusMokrassar 6388d8db13 make chat in WebAppInitData nullable 2024-12-08 10:17:02 +06:00
InsanusMokrassar 2964586cb9 add defaults to remove/set 2024-12-08 09:42:02 +06:00
InsanusMokrassar e3cb1e4faf add definedExternally in CloudStorage 2024-12-08 09:16:56 +06:00
InsanusMokrassar d7f14020d8 rename field of user id in SavePreparedInlineMessage 2024-12-07 10:48:06 +06:00
InsanusMokrassar 397197023e fix of serializer for result in SavePreparedInlineMessage 2024-12-07 10:31:28 +06:00
InsanusMokrassar 12dc93313a update dependencies 2024-12-06 13:20:01 +06:00
InsanusMokrassar 625760afae jvmApiDump 2024-12-06 13:01:01 +06:00
InsanusMokrassar 795328afdf add notes about breaking changes and update latest supported API version 2024-12-06 13:00:10 +06:00
InsanusMokrassar 57175b7698 add affiliate in TransactionPartner.User 2024-12-06 12:56:00 +06:00
InsanusMokrassar 2d05a334eb add support of AffiliateProgram in TransactionPartner 2024-12-06 12:39:04 +06:00
InsanusMokrassar 0b6d9e47b9 add support of nanostar_amount 2024-12-06 12:32:38 +06:00
InsanusMokrassar 4cdae11adc support of Ed25519TelegramKeys 2024-12-06 12:26:11 +06:00
InsanusMokrassar 04b2d1dbd6 jvmApiDump and fix of CreateInvoiceLink API bindings 2024-12-06 12:19:53 +06:00
InsanusMokrassar 4343d6d161 potentially complete events generator 2024-12-06 12:11:54 +06:00
InsanusMokrassar 6824f2c992 preparations for events generating 2024-12-06 10:23:06 +06:00
InsanusMokrassar 9cde4927ce refactor and fixes 2024-12-05 21:04:54 +06:00
InsanusMokrassar 819982473a start adding events generator 2024-12-05 18:00:39 +06:00
InsanusMokrassar 5559923339 add support of saving prepared messages 2024-12-05 16:25:20 +06:00
InsanusMokrassar c7d08df3bf continue adding support of webapps updates 2024-12-05 16:07:46 +06:00
InsanusMokrassar 41a142addb support of accelerometer, gyroscope, location and orientation data 2024-12-05 15:49:07 +06:00
InsanusMokrassar 652765bf46 add support for subscriptions 2024-12-05 11:35:33 +06:00
InsanusMokrassar 32010cf1c7 replace isActive 2024-12-05 09:42:43 +06:00
InsanusMokrassar 1c6359f041 add a lot of things in web apps 2024-12-05 09:41:31 +06:00
InsanusMokrassar 4ac5e405ac add support for gifts 2024-12-05 09:09:40 +06:00
InsanusMokrassar bc00e1f28a Merge branch 'master' into 22.0.0 2024-12-05 08:30:36 +06:00
InsanusMokrassar 191e4cff00 Merge pull request #929 from InsanusMokrassar/21.0.1
21.0.1
2024-12-03 11:09:01 +06:00
InsanusMokrassar de91cc5382 mention improvements 2024-12-03 11:07:02 +06:00
InsanusMokrassar 96b872953b fill changelog 2024-12-03 09:54:54 +06:00
InsanusMokrassar 433b0989ee jvmApiDump 2024-12-03 09:52:19 +06:00
InsanusMokrassar eddd60ebb1 add toUser cast and fix of sourceUser 2024-12-03 09:52:19 +06:00
InsanusMokrassar 8b63ed7fa9 improvements in CombinedSubcontextInitialAction 2024-12-03 09:52:19 +06:00
InsanusMokrassar 85539a9d58 start 21.0.1 2024-12-03 09:52:19 +06:00
InsanusMokrassar ad4bac82dc update versions 2024-12-01 20:04:34 +06:00
InsanusMokrassar 300be87ffd Merge branch 'master' into 22.0.0 2024-12-01 20:03:28 +06:00
InsanusMokrassar 05f46d08c8 Merge pull request #923 from InsanusMokrassar/21.0.0
21.0.0
2024-11-30 15:25:59 +06:00
InsanusMokrassar eb72ff1c94 update dependencies 2024-11-30 14:55:34 +06:00
InsanusMokrassar 6b3fabdb30 fill changelog and add docs for CombinedSubcontextInitialAction 2024-11-30 14:38:40 +06:00
InsanusMokrassar 402e695f99 add CombinedSubcontextInitialAction 2024-11-30 14:11:43 +06:00
InsanusMokrassar a87560bc40 migrate onto 21.0.0 due to breaking changes 2024-11-30 01:20:39 +06:00
InsanusMokrassar 6d300de470 add data on behaviour contexts 2024-11-29 01:09:47 +06:00
InsanusMokrassar 3658403f01 start including context data in BehaviourContext 2024-11-28 19:48:48 +06:00
InsanusMokrassar 082aeab700 start 20.1.0 2024-11-28 18:19:35 +06:00
InsanusMokrassar 4eb6fa7835 start 21.0.0 2024-11-25 14:40:40 +06:00
InsanusMokrassar ddf34aad3f Merge pull request #921 from InsanusMokrassar/20.0.1
20.0.1
2024-11-11 14:11:51 +06:00
InsanusMokrassar c818a44044 fill changelog 2024-11-11 13:52:31 +06:00
InsanusMokrassar d578f6af90 jvmApiDump 2024-11-11 13:38:09 +06:00
InsanusMokrassar 5ce4e4cbc0 fix of modifyRow 2024-11-11 13:37:20 +06:00
InsanusMokrassar 41e369cea5 fix of #761 2024-11-11 13:35:46 +06:00
InsanusMokrassar f85d4a36e1 fix of #860 2024-11-11 13:14:28 +06:00
InsanusMokrassar fb3b8a7415 fix of #917 2024-11-11 13:03:46 +06:00
InsanusMokrassar 609c2b5fad fix of #919 2024-11-11 12:39:42 +06:00
InsanusMokrassar 2c602e4434 Merge pull request #920 from byteduck-exploit/patch-1
Use correct method name for createInvoiceLink.
2024-11-11 12:38:01 +06:00
InsanusMokrassar 1a3c9bca1d start 20.0.1 2024-11-11 12:36:30 +06:00
Alex 43496505a7 Use correct method name for createInvoiceLink. 2024-11-11 05:14:07 +01:00
InsanusMokrassar 4a0c0bdc40 Merge pull request #916 from InsanusMokrassar/20.0.0
20.0.0
2024-11-01 23:47:21 +06:00
InsanusMokrassar fa9c95f799 add notes about support of Telegram Bots API 7.11 2024-11-01 23:42:22 +06:00
InsanusMokrassar dd6f7577ba migrate onto 20.0.0 due to breaking changes 2024-11-01 23:40:02 +06:00
InsanusMokrassar 7d47d0ab61 jvmApiDUmp 2024-11-01 23:32:56 +06:00
InsanusMokrassar 636c01acb9 fixes in copyText keyboard buttons 2024-11-01 23:10:47 +06:00
InsanusMokrassar 479923a04a more jvmApiDump to god of jvmApiDump 2024-11-01 14:50:46 +06:00
InsanusMokrassar ccfa6e7b6d jvmApiDump 2024-11-01 14:45:39 +06:00
InsanusMokrassar 65048648b8 improve support of media adding to text messages 2024-11-01 14:44:20 +06:00
InsanusMokrassar 50b2db8859 potentially, add support of mentions in usernames 2024-11-01 14:40:08 +06:00
InsanusMokrassar 45bbcb5ec1 add support of TransactionPartnerTelegramApi 2024-11-01 14:23:54 +06:00
InsanusMokrassar dc463b5626 add copy_text button and allowPaidBroadcast field in requests 2024-11-01 02:04:22 +06:00
InsanusMokrassar d80e578a4c start 19.1.0 2024-10-31 23:58:41 +06:00
InsanusMokrassar b26d21a817 Merge pull request #914 from InsanusMokrassar/19.0.0
1.9.0 (Fill changelog)
2024-10-31 13:25:56 +06:00
InsanusMokrassar 2052072e5d fix in changelog 2024-10-31 13:25:40 +06:00
InsanusMokrassar 6fb3d3fcb1 fill changelog and get back webhooks to old looks like 2024-10-31 13:24:47 +06:00
InsanusMokrassar c39e9fc156 Merge pull request #913 from InsanusMokrassar/19.0.0
19.0.0
2024-10-31 01:57:56 +06:00
InsanusMokrassar 9c5793bec7 change task used for ksp generation 2024-10-30 18:57:47 +06:00
InsanusMokrassar fd9bff611b small prenote in changelog 2024-10-30 15:17:05 +06:00
InsanusMokrassar bb66279044 jvmApiDump 2024-10-30 15:15:49 +06:00
InsanusMokrassar 24b48f2536 update dependencies 2024-10-30 15:14:52 +06:00
InsanusMokrassar 670c26c982 Merge pull request #912 from d1snin/18.2.3
Migrate to ktor 3.0.0
2024-10-30 15:13:33 +06:00
InsanusMokrassar 7ed5d9ceed start 19.0.0 2024-10-30 14:53:04 +06:00
InsanusMokrassar 787941fcaf Merge pull request #911 from InsanusMokrassar/18.2.3
18.2.3
2024-10-30 14:51:44 +06:00
InsanusMokrassar 6c9f1bc016 get back default list of middlewares 2024-10-30 14:41:22 +06:00
InsanusMokrassar e5bffa7c51 upgrade onRequestResultPresented in middlewares 2024-10-30 13:53:36 +06:00
d1snin 3fe26b057a migrate to ktor 3.0.0 2024-10-27 05:43:27 +03:00
InsanusMokrassar dccd15a5e9 jvmApiDump 2024-10-24 23:13:12 +06:00
InsanusMokrassar 3d14c93d89 make DefaultKtorRequestsExecutor now uses runCatching instead of runCatchingSafely 2024-10-24 22:53:34 +06:00
InsanusMokrassar b8a6534b6a add ExceptionsThrottlerTelegramBotMiddleware 2024-10-24 22:49:28 +06:00
InsanusMokrassar f5529033ec start 18.2.3 2024-10-24 21:54:20 +06:00
InsanusMokrassar 482c375327 Merge pull request #909 from InsanusMokrassar/18.2.2
18.2.2
2024-10-21 18:26:54 +06:00
InsanusMokrassar abb8b3491d update dependencies 2024-10-21 18:24:28 +06:00
InsanusMokrassar 2953005e6d jvmApiDump 2024-10-21 18:07:09 +06:00
InsanusMokrassar 1f6ddd97e3 improvements in RawMessageEntity 2024-10-21 18:04:53 +06:00
InsanusMokrassar bc8da1120e Update CommonMessageFilterExcludeCommand.kt 2024-10-17 00:42:40 +06:00
InsanusMokrassar e895c2f3a8 Update CommonMessageFilterExcludeCommand.kt 2024-10-17 00:30:15 +06:00
InsanusMokrassar f84180b3ff revert version 2024-10-15 13:50:44 +06:00
InsanusMokrassar c21c8c5a26 jvmApiDump 2024-10-15 13:47:08 +06:00
InsanusMokrassar 27416daeb8 add additional functions in TelegramBotMiddlewareBuilder 2024-10-15 13:46:25 +06:00
InsanusMokrassar b5b7482c2f add middlewares 2024-10-15 00:17:27 +06:00
InsanusMokrassar a7f4ab36c6 start adding middlewares 2024-10-14 14:44:07 +06:00
InsanusMokrassar 7398e53b85 api dump 2024-10-14 10:59:06 +06:00
InsanusMokrassar be25f705ef add CommonMessageFilterIncludeText 2024-10-13 18:28:26 +06:00
InsanusMokrassar 5ee87ac78d CommonMessageFilterExcludeCommand and SimpleFilter.minus 2024-10-13 18:23:45 +06:00
InsanusMokrassar fbd53e1f2d start 18.2.2 2024-10-13 17:56:54 +06:00
InsanusMokrassar 9fe8df9e11 Merge pull request #903 from InsanusMokrassar/18.2.1
18.2.1 (update microutils additionally)
2024-09-26 02:01:50 +06:00
InsanusMokrassar a053c08346 Update CHANGELOG.md 2024-09-26 02:00:57 +06:00
InsanusMokrassar 6fa769bce3 Update MicroUtils version 2024-09-26 02:00:30 +06:00
InsanusMokrassar 27ac8ee797 Merge pull request #902 from InsanusMokrassar/18.2.1
18.2.1
2024-09-25 22:01:47 +06:00
InsanusMokrassar ce84e3c198 build fix 2024-09-25 21:20:53 +06:00
InsanusMokrassar c3a3e9bd44 update dependencies 2024-09-25 21:14:02 +06:00
InsanusMokrassar 7b6be48ba8 start 18.2.1 2024-09-25 21:11:12 +06:00
InsanusMokrassar e98d5c7a9c Merge pull request #896 from InsanusMokrassar/18.2.0
18.2.0
2024-09-09 00:11:29 +06:00
InsanusMokrassar 7db4f47e82 fixes in giveaways -.- 2024-09-08 23:34:27 +06:00
InsanusMokrassar 42985cfa37 remove reporting of /privacy handling absence in buildBehaviourWithLongPolling 2024-09-08 22:25:15 +06:00
InsanusMokrassar 02be5b5e48 add triggers and waiters for giveaways 2024-09-08 16:25:14 +06:00
InsanusMokrassar be87e3c736 add triggers for giveaways 2024-09-08 16:10:04 +06:00
InsanusMokrassar ccced36cd5 update changelog 2024-09-08 15:52:47 +06:00
InsanusMokrassar af4c843369 remove redundant GiveawayInfo sealed interfaces 2024-09-08 15:39:06 +06:00
InsanusMokrassar f0bd4c3719 several improvements 2024-09-08 15:17:14 +06:00
InsanusMokrassar b3dfef9a38 more fixes 2024-09-08 02:18:05 +06:00
InsanusMokrassar 2e2abb8e15 more fixes to god of fixes 2024-09-07 02:59:04 +06:00
InsanusMokrassar 3cbfb2fb0b fixes 2024-09-07 02:43:25 +06:00
InsanusMokrassar b60b0259db potentially complete implementation of Bot API 7.10 2024-09-07 00:19:33 +06:00
InsanusMokrassar 5d8deb4b9b add is_star_giveaway into GiveawayPrivateResults 2024-09-07 00:07:59 +06:00
InsanusMokrassar d347c94c8b revoke rework of GiveawayPublicResults 2024-09-07 00:02:09 +06:00
InsanusMokrassar 6809b9d2ef start support of prize_star_count 2024-09-06 23:56:09 +06:00
InsanusMokrassar 1980f8a9ca add paid media payload support 2024-09-06 20:11:08 +06:00
InsanusMokrassar 3f726c9b3b start 18.2.0 2024-09-06 19:34:42 +06:00
InsanusMokrassar 4b8de04380 Merge pull request #895 from InsanusMokrassar/18.1.0
18.1.0
2024-09-05 00:54:58 +06:00
InsanusMokrassar e4ac100b38 update api dump 2024-09-05 00:52:16 +06:00
InsanusMokrassar f76e88c880 update createSubContextAndDoWithUpdatesFilter logic 2024-09-05 00:48:45 +06:00
InsanusMokrassar 19cb970461 start 18.1.0 2024-09-05 00:38:50 +06:00
InsanusMokrassar 159c5892e3 Merge pull request #894 from InsanusMokrassar/18.0.0
18.0.0
2024-09-02 01:24:57 +06:00
InsanusMokrassar b03eef8bcb update ChatMemberUpdated#gotRestrictionsChanged 2024-08-30 22:58:23 +06:00
InsanusMokrassar 89360235a6 update MicroUtils 2024-08-30 22:29:42 +06:00
InsanusMokrassar 5b4a7d912e update api dump 2024-08-30 19:48:28 +06:00
InsanusMokrassar 6ba2b70f10 add waiters for new chat member updates extensions + add kicked variants in triggers 2024-08-30 19:45:27 +06:00
InsanusMokrassar 9f2ccde589 add kicked changes listening 2024-08-30 19:30:05 +06:00
InsanusMokrassar 048599414a add note about Nik-mmzd contribution in CHANGELOG 2024-08-30 19:18:30 +06:00
InsanusMokrassar 87ed66e3ad update ChatMember to use PreviewUser instead of User 2024-08-30 19:04:10 +06:00
InsanusMokrassar e8a280c90d small optimization of extensions.gradle 2024-08-30 00:51:03 +06:00
InsanusMokrassar b0d8abf6df one more dump 2024-08-29 18:52:27 +06:00
InsanusMokrassar dd054f1e07 update jvm api dump 2024-08-29 18:26:29 +06:00
InsanusMokrassar 10d92c2fdb improvements and breaking changes in ChatMember hierarchy 2024-08-29 17:54:00 +06:00
InsanusMokrassar 2d40af21fe migration onto 18.0.0 2024-08-29 17:37:33 +06:00
InsanusMokrassar 93d1afdf1c update dependencies 2024-08-29 15:16:04 +06:00
InsanusMokrassar 39de983d42 Merge pull request #891 from Nik-mmzd/feature-888
Implement #888
2024-08-29 15:14:12 +06:00
McModder 49448408d1 Add triggers for newly introduced ChatMemberUpdated filters 2024-08-28 19:36:08 +03:00
McModder 04ead7e73d Add new methods to API dump 2024-08-28 16:43:15 +03:00
McModder 5175395be2 Fix class comparison in ChatMember.isMemberStrict and ChatMember.isAdministratorStrict 2024-08-28 16:34:55 +03:00
McModder 38e1d271ba Add extension functions to ChatMember and ChatMemberUpdated to simplify working with updates. Closes #888 2024-08-28 04:26:38 +03:00
InsanusMokrassar 6d90e571d9 add docs to new serialization/deserialization strategies and refactor several things 2024-08-24 22:47:43 +06:00
InsanusMokrassar c03440c353 add common customizable serializer 2024-08-22 01:56:41 +06:00
InsanusMokrassar d7e9c6a3a1 add customizing of UpdateDeserializationStrategy 2024-08-21 20:10:57 +06:00
InsanusMokrassar f711eb013a start 17.1.0 2024-08-21 19:59:18 +06:00
InsanusMokrassar e422c3bc33 Merge pull request #884 from InsanusMokrassar/17.0.0
17.0.0
2024-08-15 02:47:38 +06:00
InsanusMokrassar c8d6b759b7 filling of changelog and making Reaction.Paid to be an object 2024-08-15 02:41:12 +06:00
InsanusMokrassar 8823b268cc small fixes in docs 2024-08-15 02:12:45 +06:00
InsanusMokrassar 49031bf0e6 fixes and improvements 2024-08-15 01:55:55 +06:00
InsanusMokrassar c72f8e04ec fixes in send action dsl 2024-08-15 00:58:12 +06:00
InsanusMokrassar a56ad7d671 make small improvement in send action dsl 2024-08-15 00:36:11 +06:00
InsanusMokrassar 77158ffecf add note about send action dsl PR 2024-08-15 00:34:07 +06:00
InsanusMokrassar 1990e6b158 Merge pull request #883 from DRSchlaubi/patch-1
Delay after executing action in sendActionDSL
2024-08-15 00:31:19 +06:00
InsanusMokrassar 40d3388c74 one more jvmApiDump after ksp 2024-08-15 00:29:53 +06:00
InsanusMokrassar ac6cf6e0b2 jvmApiDump 2024-08-15 00:20:22 +06:00
InsanusMokrassar 1dc9dc42fb improve ChannelContentMessage 2024-08-14 23:09:16 +06:00
InsanusMokrassar b7ff6a3061 complete support of sender chat 2024-08-14 22:53:38 +06:00
InsanusMokrassar 76eae0a54f add support of paid emoji 2024-08-14 22:37:19 +06:00
InsanusMokrassar e9a172565e improve new chat member difference 2024-08-14 22:33:11 +06:00
InsanusMokrassar 49f7954db7 add support of until in MemberChatMember 2024-08-14 22:16:14 +06:00
InsanusMokrassar 9c43fecf41 add support of createChatSubscriptionInviteLink and editChatSubscriptionInviteLink 2024-08-14 22:06:57 +06:00
InsanusMokrassar 228ecba6cc start implementation of paid invitation links 2024-08-14 20:05:17 +06:00
InsanusMokrassar dfecf93dd5 add support of paid media in TransactionPartner.User 2024-08-14 19:51:02 +06:00
InsanusMokrassar b469b1c789 start implementation of superchannels 2024-08-14 19:47:29 +06:00
InsanusMokrassar f58a28d062 start 17.0.0 2024-08-14 19:29:56 +06:00
Michael Rittmeister 21ba1cca30 Delay after executing action in sendActionDSL 2024-08-12 23:46:53 +02:00
InsanusMokrassar 40c5af4469 Merge pull request #882 from InsanusMokrassar/renovate/validator
Update dependency org.jetbrains.kotlinx.binary-compatibility-validator to v0.16.3
2024-08-12 02:34:54 +06:00
renovate[bot] e8e7329f52 Update dependency org.jetbrains.kotlinx.binary-compatibility-validator to v0.16.3 2024-08-11 16:32:35 +00:00
InsanusMokrassar a162c3a8e2 Merge pull request #879 from InsanusMokrassar/16.0.0
16.0.0
2024-08-11 22:31:08 +06:00
InsanusMokrassar e9f7028a20 fill changelog 2024-08-11 22:30:15 +06:00
InsanusMokrassar ecd8ca7d4d update dependencies 2024-08-11 17:58:34 +06:00
InsanusMokrassar 6fcd327ca4 rm -rf .kotlin/ 2024-08-02 16:55:22 +06:00
InsanusMokrassar c6b809eb66 changes to calm down compiler 2024-08-02 16:53:59 +06:00
InsanusMokrassar 037f9974da start updating 2024-08-02 16:53:59 +06:00
InsanusMokrassar b2fcdc40d5 start 16.0.0 2024-08-02 16:53:53 +06:00
InsanusMokrassar 6016387e07 Merge pull request #881 from InsanusMokrassar/15.3.0
hotfix for params in shareToStory
2024-08-02 16:51:55 +06:00
InsanusMokrassar 96bbf5fc81 hotfix for params in shareToStory 2024-08-02 16:51:20 +06:00
InsanusMokrassar f7cf37f338 Merge pull request #880 from InsanusMokrassar/15.3.0
15.3.0
2024-08-02 16:50:09 +06:00
InsanusMokrassar 8e3e44769e add defaults in StoryShareParams and StoryWidgetLink 2024-08-01 17:43:08 +06:00
InsanusMokrassar 2d11685b7b fix using of json in new webapp types 2024-08-01 17:41:13 +06:00
InsanusMokrassar 8bb3095fb1 fix of "widget_link" parameter name in StoryShareParams 2024-08-01 17:39:14 +06:00
InsanusMokrassar 799ad6ca66 fill changelog and add StoryShareParams factory function 2024-08-01 17:38:16 +06:00
InsanusMokrassar bd6ff747cb add note about telegram bot api 7.8 support 2024-08-01 17:32:51 +06:00
InsanusMokrassar 010c52adeb add shareToStory in WebApp 2024-08-01 17:26:18 +06:00
InsanusMokrassar 88008b7cfc add support of business connection id in pin/unpin for messages 2024-08-01 17:17:41 +06:00
InsanusMokrassar 42b32af986 add hasMainWebApp into extended bots 2024-08-01 17:09:20 +06:00
InsanusMokrassar 4944c972a6 start 15.3.0 2024-08-01 17:03:26 +06:00
InsanusMokrassar 83445dd314 Merge pull request #878 from InsanusMokrassar/15.2.0
15.2.0
2024-07-15 18:33:27 +06:00
InsanusMokrassar 53ae56e887 remove class casts from Location Content 2024-07-15 16:29:16 +06:00
InsanusMokrassar 1c587abcdc migrato onto 15.2.0 due to partial API change 2024-07-15 16:25:42 +06:00
InsanusMokrassar 99f95ffc40 apiDump 2024-07-15 09:13:23 +06:00
InsanusMokrassar a8ed162c9c small fixes/refactors in SendLocation 2024-07-15 08:55:08 +06:00
InsanusMokrassar e5ea980347 fill changelog and remove old MainButton.onClick 2024-07-15 08:20:44 +06:00
InsanusMokrassar 4ce26c707e small refactor of MainButton 2024-07-15 02:45:01 +06:00
InsanusMokrassar 4343dbbde8 Merge pull request #875 from SuLG-ik/main-button-off-click-issue
Make MainButton.onClick(() -> Unit) and MainButton.offClick(() -> Unit) public
2024-07-15 02:42:57 +06:00
InsanusMokrassar cdecce96e7 add EncodeDefault for SendLocation realizations default fields which should be encoded anyway 2024-07-15 02:33:39 +06:00
InsanusMokrassar 8a6e06bbf0 update live/static locations 2024-07-15 02:19:50 +06:00
InsanusMokrassar f767362c41 Merge pull request #876 from bpavuk/874-bpavuk.api-mode
moving to an explicit API mode
2024-07-15 01:39:57 +06:00
InsanusMokrassar 9bf7c621a4 start 15.1.1 2024-07-15 01:39:06 +06:00
bpavuk 4085913bc3 moving to an explicit API mode
refactored the rest 🌚
2024-07-14 15:33:24 +03:00
bpavuk f36373b718 moving to an explicit API mode
refactored `send` package (an effin' huge one!)
2024-07-14 15:24:46 +03:00
bpavuk ed39fde776 moving to an explicit API mode
refactored `passport` package
2024-07-12 22:10:31 +03:00
bpavuk b8837bffdc moving to an explicit API mode
refactored `get` package
2024-07-12 22:09:25 +03:00
bpavuk cad6b26fdc moving to an explicit API mode
refactored `games` package
2024-07-12 22:07:36 +03:00
bpavuk 52f17178ab moving to an explicit API mode
refactored `files` package
2024-07-12 22:05:54 +03:00
bpavuk 6fa0ca3b89 moving to an explicit API mode
refactored `answers`, `bot`, `chat`, and `edit` packages, and jvmMain source set
2024-07-12 21:52:39 +03:00
InsanusMokrassar fb00c0b8ef Merge pull request #868 from InsanusMokrassar/15.1.0
15.1.0
2024-07-11 22:13:53 +06:00
InsanusMokrassar 343c8a4319 Update CHANGELOG.md 2024-07-11 22:10:36 +06:00
InsanusMokrassar a368356c6f fill changelog and update readme 2024-07-11 22:01:50 +06:00
InsanusMokrassar f8e87ac49b fix of message about /privacy handling absence 2024-07-11 21:09:29 +06:00
InsanusMokrassar 6a2e8400c1 update envs for github publishing 2024-07-11 20:39:50 +06:00
SuLG-k 40613e3418 add @Deprecated on MainButton.onClick(EventHandler) 2024-07-11 20:35:22 +07:00
SuLG-k 016cfcb7cd remove internal modifier from MainButton.onClick and MainButton.offClick 2024-07-11 20:33:59 +07:00
InsanusMokrassar e797546edb update link for publishing 2024-07-11 18:02:50 +06:00
InsanusMokrassar 16ca2bd984 revert adding new publishing to github packages 2024-07-11 17:23:27 +06:00
InsanusMokrassar fb796254cf reorder publishing scripts 2024-07-11 17:22:38 +06:00
InsanusMokrassar 77bd649251 update jvm api dump 2024-07-11 15:31:11 +06:00
InsanusMokrassar 1471381b12 add built-in onCommandPrivacy 2024-07-10 23:01:38 +06:00
InsanusMokrassar fc6c1da3e0 update jvm api dump 2024-07-10 22:16:09 +06:00
InsanusMokrassar ebac413997 Merge pull request #873 from bpavuk/bpavuk.reply-extension-paid-media
Implemented paid media reply extension
2024-07-10 22:02:01 +06:00
bpavuk 9fa17c1360 Reused existing code in converters 2024-07-10 18:54:30 +03:00
bpavuk 982b401b28 Added overloads with text and custom parsing mode instead of entities 2024-07-10 18:34:43 +03:00
bpavuk 26b864a314 updated PaidMedia.Video.toTelegramPaidMediaVideo() converter function 2024-07-10 18:31:08 +03:00
bpavuk f2fae9184f Fixed wrongly specified parameters 2024-07-10 16:55:24 +03:00
bpavuk 32db4a19d2 Moved to-overload to intended place 2024-07-10 16:54:26 +03:00
bpavuk 613f6de483 Renamed extension function to reflect its functionality 2024-07-10 16:53:18 +03:00
bpavuk f89849218a Added to: AccessibleMessage overload 2024-07-10 16:39:52 +03:00
bpavuk 05341be534 Implemented paid media reply extension 2024-07-10 15:33:14 +03:00
InsanusMokrassar 45b99d85ff add triggers/expectors for paid media info content 2024-07-10 17:21:15 +06:00
InsanusMokrassar a0fdebd13e upgrade sends 2024-07-10 17:00:20 +06:00
InsanusMokrassar fb1ff6e4fd fixes in send paid media 2024-07-10 16:53:16 +06:00
InsanusMokrassar 6f64ed1032 update api dump 2024-07-10 16:36:48 +06:00
InsanusMokrassar 91a5340b23 make TelegramPaidMediaPhoto constructor public 2024-07-10 16:31:33 +06:00
InsanusMokrassar 8883a9ee51 fix of build 2024-07-09 22:59:46 +06:00
InsanusMokrassar 610ada505f add notice about privacy handling 2024-07-09 17:41:13 +06:00
InsanusMokrassar 236f484e10 Merge pull request #872 from bpavuk/bot-api-7.6
Bot API 7.6
2024-07-09 16:54:06 +06:00
bpavuk 3383bcaff3 Bot API 7.6
i am sleepyhead (:
2024-07-09 13:52:53 +03:00
bpavuk 83352dd284 Bot API 7.6
removed @SerialName annotations from TransactionPartner.User data class fields
2024-07-09 13:32:00 +03:00
InsanusMokrassar b27efd118b add paid media into reply info 2024-07-09 02:15:49 +06:00
bpavuk 18fcb6bb97 Merge branch '15.1.0' into bot-api-7.6 2024-07-08 23:08:01 +03:00
InsanusMokrassar 5baa09f0c1 add sendPaidMedia, refactor telegram media, fix build 2024-07-09 01:57:12 +06:00
bpavuk bfff55ab08 Bot API 7.6
added section_separator_color field to theme params in Bot Webapps
2024-07-08 22:49:35 +03:00
bpavuk 051922b4c2 Bot API 7.6
added invoice payload field to TransactionPartner.User
2024-07-08 22:46:26 +03:00
InsanusMokrassar 9dd80be36d Merge pull request #871 from bpavuk/bot-api-7.7
Bot API 7.7 (2)
2024-07-09 00:36:31 +06:00
bpavuk 873905a288 Bot API 7.7
deleted unneeded warning in docs
2024-07-08 21:34:19 +03:00
bpavuk f8066431d3 Bot API 7.7
added docs for event trigger
2024-07-08 21:31:49 +03:00
InsanusMokrassar 5c655dd84c Merge pull request #870 from bpavuk/bot-api-7.7
Bot API 7.7
2024-07-09 00:27:50 +06:00
InsanusMokrassar 00aefefc31 progress on addinf of paid media 2024-07-08 02:51:09 +06:00
bpavuk d865a60151 Bot API 7.7
added waiters, triggers, and class casts for refunded payment event. added property handler in RawMessage.
2024-07-07 21:25:19 +03:00
InsanusMokrassar 1eef5bb239 temporal progress on adding support of paid media 2024-07-08 00:18:54 +06:00
bpavuk 0457792d99 Bot API 7.7
added RefundedPaymentEvent
2024-07-07 20:56:17 +03:00
bpavuk 8c9f0ae922 Bot API 7.7
fixed RefundedPayment data class. providerPaymentChargeId is optional
2024-07-07 20:46:58 +03:00
bpavuk 44a8186830 Bot API 7.7
now WebApp class supports vertical swipes to close and/or minimize the app
2024-07-07 20:28:18 +03:00
bpavuk d4698301ad Bot API 7.7
fixed event handler for onScanQRPopupClosed event
2024-07-07 20:05:24 +03:00
bpavuk b7d3d849eb optimization and conventions
converted some objects with purpose to hold the data to data objects
2024-07-07 19:50:28 +03:00
bpavuk cb33176e8b Bot API 7.7
implemented scanQrPopupClosed event
2024-07-07 19:48:37 +03:00
bpavuk 6edf466220 Bot API 7.7
implemented minor changes regarding refunded payments
2024-07-07 17:45:59 +03:00
InsanusMokrassar 0d4452d0f5 update PaidMedia 2024-07-06 21:45:15 +06:00
InsanusMokrassar e02f74d77d start implement PaidMedia 2024-07-02 23:18:36 +06:00
InsanusMokrassar 47a8739db5 update microutils 2024-07-02 15:24:35 +06:00
InsanusMokrassar 760e8b0491 start 15.1.0 2024-07-02 14:55:12 +06:00
InsanusMokrassar fe518a0d8f change dependencies repositories resolution order 2024-06-26 01:13:52 +06:00
InsanusMokrassar 227849a14c Merge pull request #867 from InsanusMokrassar/15.0.0
15.0.0
2024-06-26 00:50:38 +06:00
InsanusMokrassar 9e2c23cf2d small note about edit methods changes 2024-06-26 00:50:22 +06:00
InsanusMokrassar acd241e31e update dependencies and add note about 7.5 bots api support 2024-06-26 00:23:51 +06:00
InsanusMokrassar 9cfc98bb67 improve API and fix StarTransaction 2024-06-26 00:19:54 +06:00
InsanusMokrassar 6a9407f15c potentially implement Bot API 7.5 2024-06-23 16:02:19 +06:00
InsanusMokrassar af79e26855 add support for businessConnectionId in stopPoll 2024-06-23 15:23:58 +06:00
InsanusMokrassar 02a404b805 rename api file GetTransactions 2024-06-23 15:16:43 +06:00
InsanusMokrassar f2e97df44c add support of getStarTransactions 2024-06-23 15:16:05 +06:00
InsanusMokrassar 63a695dcc5 complete Star Transactions abstractions 2024-06-23 15:11:03 +06:00
InsanusMokrassar 66cf0689e1 start implement new bot api 2024-06-22 23:31:38 +06:00
InsanusMokrassar c7b8187829 start 15.0.0 2024-06-22 21:54:40 +06:00
InsanusMokrassar 5cfc350c13 Merge pull request #863 from InsanusMokrassar/14.1.0
14.1.0
2024-06-21 18:14:05 +06:00
InsanusMokrassar a3ef66bbfb migration due to potential breaking changes in microutils 2024-06-21 13:30:13 +06:00
InsanusMokrassar 738728f647 Update libs.versions.toml 2024-06-21 13:21:05 +06:00
InsanusMokrassar abbb4e2dff update microutils 2024-06-16 22:34:44 +06:00
InsanusMokrassar c3fa8a6d33 update microutils dependency 2024-06-16 00:29:13 +06:00
InsanusMokrassar fb2b912f93 update docs 2024-06-15 13:05:16 +06:00
InsanusMokrassar 46c5c62e15 rewrite MainTrigger as noinline 2024-06-15 12:36:14 +06:00
InsanusMokrassar 60fdbb8ac4 small improvement in BehaviourContext 2024-06-14 19:54:06 +06:00
InsanusMokrassar 86bd5eaa07 fill changelog and change BehaviourContext updates flow subscription mechanism 2024-06-14 17:33:51 +06:00
InsanusMokrassar 57122cc2f9 update dependencies 2024-06-14 17:28:37 +06:00
InsanusMokrassar 91a8058a3a try to support nullable marker factory 2024-06-13 22:24:16 +06:00
InsanusMokrassar 97836c5f4e rewrite createSubContextAndDoWithUpdatesFilter and doInContext to work with supervisor scope 2024-06-13 21:32:04 +06:00
InsanusMokrassar 1a8cfefa4d start 14.0.2 2024-06-13 21:09:49 +06:00
InsanusMokrassar 0e97a63103 Merge pull request #861 from InsanusMokrassar/14.0.1
14.0.1
2024-06-07 02:25:15 +06:00
InsanusMokrassar 24269cc774 improve SendInvoice API one more time 2024-06-07 01:55:37 +06:00
InsanusMokrassar d960d94c0d fix build 2024-06-07 01:45:23 +06:00
InsanusMokrassar 663d63b009 update invoices API 2024-06-07 01:18:55 +06:00
InsanusMokrassar 7118631213 start 14.0.1 2024-06-06 16:53:56 +06:00
InsanusMokrassar ff34017a03 Merge pull request #859 from InsanusMokrassar/14.0.0
14.0.0
2024-06-01 13:36:13 +06:00
InsanusMokrassar 96a7a2acab fill changelog and add Telegram Bots API support note 2024-06-01 13:35:29 +06:00
InsanusMokrassar 71c830fc2e fix passing of effectId in a lot of functions 2024-06-01 13:17:40 +06:00
InsanusMokrassar 271e7d2157 fix in SendPhoto 2024-06-01 13:13:10 +06:00
InsanusMokrassar cf5e5a1d1e update defaults in createResend 2024-05-31 19:46:29 +06:00
InsanusMokrassar 186d6931ac first working version 2024-05-31 16:55:52 +06:00
InsanusMokrassar 6ec686040c progress in fixes of api errors 2024-05-31 13:04:11 +06:00
InsanusMokrassar 211cef298c fix of core build 2024-05-31 12:39:12 +06:00
InsanusMokrassar 8de41bdd99 complete effects in core part 2024-05-30 22:13:18 +06:00
InsanusMokrassar 7a5c9c7ef8 add base support of effects 2024-05-30 21:58:47 +06:00
InsanusMokrassar 4dec85ee60 add note about TelegramPaymentChargeId 2024-05-28 23:59:01 +06:00
InsanusMokrassar 4622509356 add support of refundStarPayment 2024-05-28 23:57:48 +06:00
InsanusMokrassar 30e44d6bf2 migration onto 14.0.0 due to breaking changes 2024-05-28 23:47:20 +06:00
InsanusMokrassar e403bbca0b add support of expandable blockquote 2024-05-28 23:46:30 +06:00
InsanusMokrassar 93e06a5765 add support of show_caption_above_media"" 2024-05-28 22:48:06 +06:00
InsanusMokrassar 718f6ab366 start add effects support 2024-05-28 21:35:27 +06:00
InsanusMokrassar 6f776576ab add support of ommiting provider_token in payment classes 2024-05-28 19:06:11 +06:00
InsanusMokrassar fcdaeb2e8f start 13.1.0 2024-05-28 18:54:44 +06:00
InsanusMokrassar 1e679ce50b Merge pull request #848 from InsanusMokrassar/13.0.0
13.0.0
2024-05-10 19:59:06 +06:00
InsanusMokrassar fe4be69051 add note about Telegram Bots API support 2024-05-10 19:55:00 +06:00
InsanusMokrassar 06ba14e8be apiDump 2024-05-10 19:45:35 +06:00
InsanusMokrassar ca1b196942 updates in LiveFlowLocation behaviours 2024-05-10 19:43:54 +06:00
InsanusMokrassar dc5d8afe32 Chat bacgrkoud became PublicChatEvent inheritor instead of CommonEvent 2024-05-10 19:25:33 +06:00
InsanusMokrassar b843fd9188 fixes in support of text entities 2024-05-10 16:31:56 +06:00
InsanusMokrassar d56173eceb dump api 2024-05-09 22:15:26 +06:00
InsanusMokrassar 97621bca67 add support of ChatBackground 2024-05-09 21:54:24 +06:00
InsanusMokrassar 7e986b2088 update polls 2024-05-07 18:17:20 +06:00
InsanusMokrassar cfc2fd1b47 fixes in sends and poll.kt 2024-05-07 16:15:40 +06:00
InsanusMokrassar 905486fff9 add support of max_reaction_count 2024-05-07 00:25:27 +06:00
InsanusMokrassar 6acf4bc927 almost completed implementation of polls changes 2024-05-07 00:20:53 +06:00
InsanusMokrassar 64a1aeef2c migrate 12.1.0 -> 13.0.0 2024-05-06 22:10:19 +06:00
InsanusMokrassar 6db88eb8bd add live_period in editing of live location 2024-05-06 21:51:24 +06:00
InsanusMokrassar 4e416aaf44 add LiveLocation.Companion#INDEFINITE_LIVE_PERIOD 2024-05-06 21:41:01 +06:00
InsanusMokrassar 71b9f15e40 ChatMemberUpdated 2024-05-06 21:37:44 +06:00
InsanusMokrassar 4dc2bfc8bf start 12.1.0 2024-05-06 21:33:35 +06:00
InsanusMokrassar 31c1055f3d Merge pull request #846 from InsanusMokrassar/12.0.1
12.0.1
2024-04-22 16:23:34 +06:00
InsanusMokrassar 3da2229a9c Update CHANGELOG.md 2024-04-22 14:41:53 +06:00
InsanusMokrassar 624289cc8e Update MicroUtils to last 0.20.45 version 2024-04-22 14:41:31 +06:00
InsanusMokrassar 9edc8a0d5a update dependencies 2024-04-22 11:40:53 +06:00
InsanusMokrassar 3bf914471a start 12.0.1 2024-04-22 11:35:34 +06:00
InsanusMokrassar 7d3c8a2d27 Merge pull request #843 from InsanusMokrassar/12.0.0
12.0.0
2024-04-20 23:35:13 +06:00
InsanusMokrassar f12628bec3 add notice about breaking changes in 12.0.0 2024-04-20 23:33:32 +06:00
InsanusMokrassar c1734e6d12 update changelog and readme 2024-04-20 23:31:42 +06:00
InsanusMokrassar 4bff860c01 fixes 2024-04-19 19:34:27 +06:00
InsanusMokrassar 6a8b83f750 remove timezone function from BusinessOpeningHours 2024-04-19 17:50:35 +06:00
InsanusMokrassar ab9718b7c6 fixes in business connections 2024-04-19 17:36:38 +06:00
InsanusMokrassar 0a9235bcd9 add flag sentByBusinessConnectionOwner 2024-04-18 20:07:33 +06:00
InsanusMokrassar eff2f2ba41 fixes in updates retrieving 2024-04-18 17:06:48 +06:00
InsanusMokrassar db644c93ff update support of BiometricManager 2024-04-18 16:40:59 +06:00
InsanusMokrassar 28e031265c update stickers 2024-04-18 16:12:19 +06:00
InsanusMokrassar 84abd006ad support of new stickers API 2024-04-18 15:50:21 +06:00
InsanusMokrassar 5f4a327c2e add support of replaceStickerInSet 2024-04-18 15:21:07 +06:00
InsanusMokrassar c5102590cc update users shared related things 2024-04-18 15:03:22 +06:00
InsanusMokrassar 072264faad add support of users in UsersShared 2024-04-18 14:47:22 +06:00
InsanusMokrassar 6b74bc155e update ChatShared 2024-04-18 14:45:06 +06:00
InsanusMokrassar 9d506b11a3 add support of birthdate 2024-04-18 14:43:14 +06:00
InsanusMokrassar f47b3673a7 fix build 2024-04-17 16:40:58 +06:00
InsanusMokrassar dbb8be502a almost completed sends with business connection id 2024-04-17 15:09:45 +06:00
InsanusMokrassar 170747741f remove redundant includes of business connection id in send requests 2024-04-17 13:55:37 +06:00
InsanusMokrassar e4a3acdd68 start adding of support business_connection_id in sending requests 2024-04-16 23:11:01 +06:00
InsanusMokrassar 953bdef657 add support of personal chat, is_from_offline and can_connect_to_business 2024-04-16 22:57:07 +06:00
InsanusMokrassar 64ef0fa160 potentially finally add support of business chats input 2024-04-16 22:04:35 +06:00
InsanusMokrassar c1f40c1030 some progress on business chats 2024-04-16 19:25:18 +06:00
InsanusMokrassar 8de584b292 add support of business info in chats 2024-04-16 18:43:09 +06:00
InsanusMokrassar cb7bb01671 add sender_business_bot support 2024-04-16 18:37:04 +06:00
InsanusMokrassar a7b2bb820b add different business entities 2024-04-16 18:29:57 +06:00
InsanusMokrassar be9c0cff61 some progress in business connections support 2024-04-16 16:00:15 +06:00
InsanusMokrassar 6ac6ad0c0a add several abstractions of business chats 2024-04-15 21:01:52 +06:00
InsanusMokrassar dbc69def0b add support of BusinessConnection 2024-04-15 17:47:18 +06:00
InsanusMokrassar b8061966be almost completed adding of BusinessConnection 2024-04-15 01:19:33 +06:00
InsanusMokrassar 0e0af73633 start 12.0.0 2024-04-02 21:12:35 +06:00
InsanusMokrassar 2a2aeed045 small notice about breaking changes in 11.0.0 2024-03-18 13:54:34 +06:00
InsanusMokrassar fdc007f609 Merge pull request #839 from InsanusMokrassar/11.0.0
11.0.0
2024-03-18 13:52:46 +06:00
InsanusMokrassar dec55cfb2d extract different ids into external files 2024-03-16 23:09:01 +06:00
InsanusMokrassar 3997af171e StickerSetName now is value class 2024-03-16 23:07:55 +06:00
InsanusMokrassar d963cdae35 PollId now is value class 2024-03-16 22:53:01 +06:00
InsanusMokrassar 8ec209422a ShippingOptionId now is value class 2024-03-16 22:47:17 +06:00
InsanusMokrassar 8ca86b1e14 RawChatId as value class 2024-03-16 22:40:42 +06:00
InsanusMokrassar ffba4e9cef renamed several types 2024-03-16 21:21:34 +06:00
InsanusMokrassar 544192ad5f ShippingQueryId is value class now 2024-03-16 21:17:36 +06:00
InsanusMokrassar 08b0564dba extract and deprecate MessageIdentifier 2024-03-16 20:42:08 +06:00
InsanusMokrassar 009c49247d remove redundant includeMediaGroups from editContentMessage and editContent flows 2024-03-16 20:39:32 +06:00
InsanusMokrassar dd7a3ced4d InlineMessageId is value class now 2024-03-16 20:36:48 +06:00
InsanusMokrassar ceff85fcfd UpdateId is value class now 2024-03-16 20:32:28 +06:00
InsanusMokrassar bb62f9fbd6 TgFileUniqueId is value class now 2024-03-16 20:21:29 +06:00
InsanusMokrassar 7bbbf54775 PreCheckoutQueryId is value class now 2024-03-16 20:15:56 +06:00
InsanusMokrassar 1b506cb820 WebAppQueryId is value class now 2024-03-16 20:10:05 +06:00
InsanusMokrassar 3f988d1529 CallbackQueryIdentifier is value class now 2024-03-16 20:04:19 +06:00
InsanusMokrassar 2da28cea01 MediaGroupIdentifier is value class now 2024-03-16 20:00:16 +06:00
InsanusMokrassar 42e6013d95 InlineQueryIdentifier is value class now 2024-03-16 19:56:58 +06:00
InsanusMokrassar 3c8dbe70dc MessageThreadId is value class now 2024-03-16 19:53:50 +06:00
InsanusMokrassar 4a1989fb79 MessageId is value class now 2024-03-16 19:45:23 +06:00
InsanusMokrassar b559dbbe66 remove deprecations 2024-03-16 19:29:10 +06:00
InsanusMokrassar d72fb6e3e8 start 11.0.0 2024-03-16 19:22:49 +06:00
InsanusMokrassar 092722fad8 Merge pull request #838 from InsanusMokrassar/10.1.2
10.1.2
2024-03-16 19:21:12 +06:00
InsanusMokrassar 63633e8891 add apiCheck step to ci/cd 2024-03-16 10:20:12 +06:00
InsanusMokrassar 61cdfa264e add api validator 2024-03-16 10:17:33 +06:00
InsanusMokrassar 6262b0581a update dependencies 2024-03-16 10:11:23 +06:00
InsanusMokrassar 8694b31066 start 10.1.2 2024-03-16 09:57:38 +06:00
InsanusMokrassar 5a541271b8 Merge pull request #833 from InsanusMokrassar/renovate/dokka
Update dokka to v1.9.20
2024-03-05 13:55:57 +06:00
renovate[bot] 9b14e9079b Update dokka to v1.9.20 2024-03-04 16:18:05 +00:00
InsanusMokrassar fd26d14380 Merge pull request #831 from InsanusMokrassar/10.1.1
10.1.1
2024-03-01 23:34:05 +06:00
InsanusMokrassar 3ebaef0789 update korlibs 2024-03-01 23:19:05 +06:00
InsanusMokrassar 51bb0a021f update dependencies 2024-03-01 23:15:42 +06:00
InsanusMokrassar b7c1692efa start 10.1.1 2024-03-01 23:09:12 +06:00
InsanusMokrassar bce5fb658c Merge pull request #827 from InsanusMokrassar/10.1.0
10.1.0
2024-02-17 01:57:17 +06:00
InsanusMokrassar b9bc40187f fixes in changelog and readme 2024-02-17 01:53:00 +06:00
InsanusMokrassar 3da4ee4808 make Story to be data class 2024-02-17 01:46:26 +06:00
InsanusMokrassar 6571e8f592 update dependencies 2024-02-16 23:29:29 +06:00
InsanusMokrassar 5c13047a0b add support of custom_emoji_sticker_set_name 2024-02-16 21:59:10 +06:00
InsanusMokrassar 4908bb2cfe add support of unrestrict_boost_count 2024-02-16 21:57:03 +06:00
InsanusMokrassar a01ca43837 add support of Story content and reply_to_story field 2024-02-16 21:54:13 +06:00
InsanusMokrassar a9a01e3154 add support of sender_boost_count 2024-02-16 21:38:28 +06:00
InsanusMokrassar 468c54a30f add support of ChatBoostAdded 2024-02-16 21:13:37 +06:00
InsanusMokrassar 9177e01910 start 10.1.0 2024-02-16 19:39:20 +06:00
InsanusMokrassar 417f72af4a Merge pull request #825 from InsanusMokrassar/10.0.1
10.0.1
2024-02-10 22:04:37 +06:00
InsanusMokrassar df6d70b20d update dependencies 2024-02-10 17:31:20 +06:00
InsanusMokrassar 0b12df14db start 10.0.1 2024-02-06 22:49:15 +06:00
InsanusMokrassar 1590e1eef2 Merge pull request #818 from InsanusMokrassar/10.0.0
10.0.0 hotfix: add support of 'sender' chat type
2024-01-12 14:21:55 +06:00
InsanusMokrassar 6896bc0772 add support of 'sender' chat type 2024-01-12 14:21:06 +06:00
InsanusMokrassar ce1abb0ae2 Merge pull request #814 from InsanusMokrassar/10.0.0
10.0.0
2024-01-12 12:45:49 +06:00
InsanusMokrassar ac63d52b14 add notes about telegram bots api 7.0 support 2024-01-12 02:44:30 +06:00
InsanusMokrassar e902f85b36 fixes in build 2024-01-12 02:21:22 +06:00
InsanusMokrassar 225fedde3a several more fixes 2024-01-12 02:14:46 +06:00
InsanusMokrassar 66e31e5d0c fixes in AccessibleMessage -> Message in several old parts 2024-01-12 01:53:40 +06:00
InsanusMokrassar 852065ad38 get back LinksFormatting for Message 2024-01-12 01:44:56 +06:00
InsanusMokrassar d88fc2c9c0 rename replyInChat -> replyInChatId; replace AccessibleMessage by Message in Reply parts 2024-01-12 01:18:33 +06:00
InsanusMokrassar 4d92588390 update changelog 2024-01-12 01:11:57 +06:00
InsanusMokrassar 89524290c5 improve users shared DSLs 2024-01-10 23:05:54 +06:00
InsanusMokrassar 86c86dfb8a fixes in LinkPreviewOptions 2024-01-10 16:46:36 +06:00
InsanusMokrassar bdae774c62 add EncodeDefault for required fields in LinkPreviewOptions 2024-01-10 14:59:41 +06:00
InsanusMokrassar d70c7fdbdf fixes related to UsersShared 2024-01-09 18:21:20 +06:00
InsanusMokrassar f14885a541 fix in LinkPreviewOptions.Surrogate 2024-01-09 18:05:03 +06:00
InsanusMokrassar 0013e91f6e fix of build and add annotation to all fields with one 2024-01-09 17:52:13 +06:00
InsanusMokrassar aa315f6fec rename LinkPreviewOptions.Medium to LinkPreviewOptions.Default 2024-01-09 17:34:07 +06:00
InsanusMokrassar 9425380002 imrovements in copy/delete/forward messages 2024-01-09 17:03:47 +06:00
InsanusMokrassar 0f5bce592b replace username to full 2024-01-09 11:45:12 +06:00
InsanusMokrassar 294f80032c rename ScheduledGiveaway -> Giveaway 2024-01-09 11:43:04 +06:00
InsanusMokrassar a4064a15ec add trigger for ChatMessageReactionsCountUpdated 2024-01-09 11:33:26 +06:00
InsanusMokrassar 7e5064ba3c fix in LinkPreviewOptions surrogate 2024-01-08 19:22:26 +06:00
InsanusMokrassar eac45b86a6 fixes in LinkPreviewOptions 2024-01-08 19:16:17 +06:00
InsanusMokrassar f0448485c8 add defaults to setMessageReaction 2024-01-08 18:56:21 +06:00
InsanusMokrassar f2308f0312 update setMessageReaction 2024-01-08 18:49:04 +06:00
InsanusMokrassar 76a2cfd1a0 Merge pull request #817 from mefilt/master
Fixed incorrect link at readme
2024-01-08 16:34:38 +06:00
Mefilt edca5494d4 Fixed incorrect link at readme 2024-01-08 18:29:59 +08:00
InsanusMokrassar d480c9efd6 fixes in replies with chats and messages 2024-01-08 15:43:11 +06:00
InsanusMokrassar a106068af4 fixes in reactions 2024-01-08 15:13:51 +06:00
InsanusMokrassar d55253a81b improvements in replies 2024-01-08 15:02:39 +06:00
InsanusMokrassar adede330fb fix of testSources in TextQuote 2024-01-08 13:55:41 +06:00
InsanusMokrassar f2f370e40e update all updates list 2024-01-08 10:11:39 +06:00
InsanusMokrassar 86bb87bb37 make allowSendingWithoutReply nullable 2024-01-08 10:05:41 +06:00
InsanusMokrassar bb80eb43fd build fixes 2024-01-08 00:42:24 +06:00
InsanusMokrassar a692ed65f3 almost add reply parameters 2024-01-07 22:42:46 +06:00
InsanusMokrassar 60e50f9492 improvements in Username 2024-01-07 21:56:31 +06:00
InsanusMokrassar e28f3492ef add ReplyParameters 2024-01-07 21:54:56 +06:00
InsanusMokrassar f637b480b1 add TextQuote 2024-01-07 20:51:29 +06:00
InsanusMokrassar 955e9ca871 fix of #816 2024-01-07 20:05:05 +06:00
InsanusMokrassar 8df72edd52 fixes of build 2024-01-07 20:00:07 +06:00
InsanusMokrassar f3b05bbffd add support of external_reply in RawMessage 2024-01-07 19:38:22 +06:00
InsanusMokrassar 95011e2b3e add MessageOrigin serializer 2024-01-07 19:19:59 +06:00
InsanusMokrassar cad0bf8a95 add ExternalReplyInfo 2024-01-07 19:04:23 +06:00
InsanusMokrassar f760e60089 fixes in typing of giveaways 2024-01-07 17:40:41 +06:00
InsanusMokrassar 6c76e1c47a add support of MessageOrigin 2024-01-07 17:12:37 +06:00
InsanusMokrassar b5f4219635 fixes in inaccessible message support 2024-01-07 15:52:49 +06:00
InsanusMokrassar 5190f7b856 add support of inaccessible message 2024-01-07 15:21:32 +06:00
InsanusMokrassar 14756fd6e8 add support of has_visible_history field 2024-01-07 15:16:33 +06:00
InsanusMokrassar e66537ee32 fixes 2024-01-05 20:30:07 +06:00
InsanusMokrassar 825ecc1d73 fixes and note in CHANGELOG 2024-01-05 13:45:30 +06:00
InsanusMokrassar 05bfbfe381 start adding of colors work 2024-01-05 13:32:08 +06:00
InsanusMokrassar 430240a6ad add emoji status in the most extended chats 2024-01-04 18:06:40 +06:00
InsanusMokrassar 860e35258c update webapp part 2024-01-04 17:52:57 +06:00
InsanusMokrassar d9c39d7a26 fixes of build 2024-01-04 17:31:47 +06:00
InsanusMokrassar 52fd55eea5 fix of overloads conflict in ClassCastsNew 2024-01-04 14:39:32 +06:00
InsanusMokrassar cb11532b58 update ClassCastsIncluded 2024-01-04 13:13:21 +06:00
InsanusMokrassar dce63713f9 add giveaways support 2024-01-04 13:10:05 +06:00
InsanusMokrassar fb9ff653ef add boosts support 2024-01-04 11:38:30 +06:00
InsanusMokrassar 57f53813c8 update class casts 2024-01-04 10:30:28 +06:00
InsanusMokrassar fc183bfd2f update user shared to users shared 2024-01-03 16:31:14 +06:00
InsanusMokrassar c025a027c6 add support of copy/forward/delete messages 2024-01-03 16:06:54 +06:00
InsanusMokrassar db2101d85c add blockquote 2024-01-02 23:26:47 +06:00
InsanusMokrassar a01a9910b5 add full support of link preview customization 2024-01-02 22:36:10 +06:00
InsanusMokrassar 4e1ecc0e34 add LinkPreviewOptions 2024-01-02 21:55:28 +06:00
InsanusMokrassar 90225a9380 add support of availableReactions 2023-12-31 16:38:22 +06:00
InsanusMokrassar 3026c8708d add support of setMessageReactions 2023-12-31 16:27:35 +06:00
InsanusMokrassar 63975cc88e add workarounds for reactions 2023-12-31 16:16:26 +06:00
InsanusMokrassar a622c4d6fa add Reaction type 2023-12-30 03:04:02 +06:00
InsanusMokrassar e124bb18df update ksp 2023-12-30 02:42:05 +06:00
InsanusMokrassar 152728afca start 10.0.0 2023-12-30 02:41:42 +06:00
InsanusMokrassar 38d672b665 Merge pull request #813 from InsanusMokrassar/9.4.3
9.4.3
2023-12-24 21:44:22 +06:00
InsanusMokrassar d2c299301a Update CHANGELOG.md 2023-12-24 21:36:37 +06:00
InsanusMokrassar 25fb6b2b46 Update gradle-wrapper.properties 2023-12-24 21:30:15 +06:00
InsanusMokrassar 5b5de5253c Update libs.versions.toml 2023-12-24 21:29:08 +06:00
InsanusMokrassar 9a7dd6ec9a upgrades 2023-12-24 19:25:41 +06:00
InsanusMokrassar 4085f721be update dependencies 2023-12-24 19:12:02 +06:00
InsanusMokrassar ffc915cae1 start 9.4.3 2023-12-24 18:56:27 +06:00
InsanusMokrassar a6c90b3df5 Merge pull request #810 from InsanusMokrassar/9.4.2
9.4.2
2023-12-10 14:10:59 +06:00
InsanusMokrassar a6d9fa6ce3 update uuid 2023-12-10 13:43:43 +06:00
InsanusMokrassar 7fd2442f8b add inmonexus user/password 2023-12-10 13:39:59 +06:00
InsanusMokrassar 8b37ecea9e remove publishing to gitea 2023-12-10 13:39:10 +06:00
InsanusMokrassar 35fc9f60df replace gitea packages with nexus 2023-12-10 13:37:35 +06:00
InsanusMokrassar 68e89dc1ad Update build.gradle 2023-12-10 02:18:25 +06:00
InsanusMokrassar 129fb31b74 update dependencies 2023-12-08 16:13:02 +06:00
InsanusMokrassar a2c353ca41 start 9.4.2 2023-12-08 16:10:48 +06:00
InsanusMokrassar cb74abfce5 Merge pull request #806 from InsanusMokrassar/9.4.1
9.4.1
2023-11-26 13:43:38 +06:00
InsanusMokrassar ca7314923e replace warning about two bots from LongPolling to DefaultKtorRequestsExecutor 2023-11-26 13:37:49 +06:00
InsanusMokrassar 74f625a53a start 9.4.1 2023-11-26 13:32:56 +06:00
InsanusMokrassar 3a5fed3dd9 Merge pull request #803 from InsanusMokrassar/9.4.0
9.4.0
2023-11-26 04:30:56 +06:00
InsanusMokrassar 6158143220 Update greetings.yml 2023-11-26 04:30:18 +06:00
InsanusMokrassar f8182ddb85 Revert "pinned message in ExtendedOtherPartiesChat"
This reverts commit b7c3f9f607.
2023-11-26 03:20:05 +06:00
InsanusMokrassar b7c3f9f607 pinned message in ExtendedOtherPartiesChat 2023-11-26 02:06:30 +06:00
InsanusMokrassar 8763ea23fa cratch fix of build fails 2023-11-25 17:54:40 +06:00
InsanusMokrassar b412e7b3b7 improvement of DefaultKTgBotAPIKSLog 2023-11-25 12:56:00 +06:00
InsanusMokrassar 98e5d182bb update dependencies 2023-11-25 00:28:51 +06:00
InsanusMokrassar ffc0f5abb7 add improvements in logging functionality 2023-11-23 20:00:52 +06:00
InsanusMokrassar 816cf00dac basically add logging 2023-11-23 12:47:58 +06:00
InsanusMokrassar e34bc7453e update dependencies 2023-11-23 12:06:46 +06:00
InsanusMokrassar 3b2ccbf33b start 9.4.0 2023-11-23 12:00:32 +06:00
InsanusMokrassar 6ecfbdf56d improvements in publish.gradle 2023-11-05 13:22:32 +06:00
InsanusMokrassar b49e1c50f5 remove temporal publish.gradle file 2023-11-05 13:09:54 +06:00
InsanusMokrassar d7389dfcfe potential fix of publish.gradle 2023-11-05 13:09:29 +06:00
InsanusMokrassar cf5cee3e53 Merge pull request #798 from InsanusMokrassar/9.3.0
9.3.0
2023-11-05 12:46:40 +06:00
InsanusMokrassar 8593263506 fill changelog 2023-11-05 12:36:36 +06:00
InsanusMokrassar 4422a4d09b update workflows jdk 2023-11-05 00:48:09 +06:00
InsanusMokrassar 9ecb50e377 update dependencies and gradle wrapper 2023-11-04 21:13:14 +06:00
InsanusMokrassar 8a4b40c6ec Update libs.versions.toml 2023-11-01 12:45:24 +06:00
InsanusMokrassar bba667db30 Merge branch 'master' into 9.3.0 2023-10-31 18:45:52 +06:00
InsanusMokrassar ca0d256bbb update dependencies 2023-10-31 18:43:51 +06:00
InsanusMokrassar dc2fd07632 Merge pull request #797 from InsanusMokrassar/9.2.4
9.2.4
2023-10-25 19:59:05 +06:00
InsanusMokrassar 32fe008eef update docs remote url 2023-10-25 14:58:05 +06:00
InsanusMokrassar 2b938903b6 update kdocs 2023-10-25 14:55:46 +06:00
InsanusMokrassar 080db09d2c improvements of commands expectations and triggers 2023-10-25 14:36:32 +06:00
InsanusMokrassar 0efa52fe00 start 9.2.4 2023-10-25 13:34:41 +06:00
InsanusMokrassar c4214798e3 Merge branch 'master' into 9.3.0-RC 2023-10-24 16:15:49 +06:00
InsanusMokrassar fdf510153d Merge pull request #796 from InsanusMokrassar/9.2.3
9.2.3
2023-10-24 16:12:17 +06:00
InsanusMokrassar edb16d7107 update gradle wrapper 2023-10-24 15:55:37 +06:00
InsanusMokrassar c49f400201 fix in VoiceContent#createResend 2023-10-24 15:52:06 +06:00
InsanusMokrassar db7de6edf8 start 9.2.3 2023-10-24 15:51:08 +06:00
InsanusMokrassar a0b14233e0 update microutils 2023-10-20 22:35:03 +06:00
InsanusMokrassar 1a479706e2 update version of microutils and add arm platform target 2023-10-20 22:07:14 +06:00
InsanusMokrassar 2719e166a8 update workgflows 2023-10-17 23:46:28 +06:00
InsanusMokrassar 051684db23 update changelog 2023-10-17 23:43:13 +06:00
InsanusMokrassar 805cec76ce update kdokka 2023-10-17 23:39:30 +06:00
InsanusMokrassar 899c195fd5 update gradle wrapper 2023-10-17 23:38:31 +06:00
InsanusMokrassar f5937fc4d6 upgrade up to 9.3.0-RC 2023-10-17 23:37:51 +06:00
InsanusMokrassar 8cf7b349df Merge branch 'master' into 9.3.0 2023-10-15 18:04:44 +06:00
InsanusMokrassar bf8f8b9e6f update microutils 2023-10-15 17:49:13 +06:00
InsanusMokrassar edc0b1c492 update ksp and ktor 2023-10-12 13:27:54 +06:00
InsanusMokrassar a85d58aac1 update up to 1.9.20-RC🎉 2023-10-12 13:21:06 +06:00
InsanusMokrassar 10860e1bb2 Merge pull request #794 from InsanusMokrassar/9.2.2
9.2.2
2023-10-11 13:55:41 +06:00
InsanusMokrassar 46e6eeca9d improve serializers 2023-10-11 13:38:09 +06:00
InsanusMokrassar 80be86454d fix of #793 2023-10-11 13:07:07 +06:00
InsanusMokrassar d5f5a0e30b start 9.2.2 2023-10-11 12:10:36 +06:00
InsanusMokrassar 826c27874d update microutils 2023-10-09 20:52:33 +06:00
InsanusMokrassar 4e917e8cf8 update libs and changelog with thanks to Anton Lakotka 2023-10-09 13:07:56 +06:00
InsanusMokrassar 051210caf5 Merge pull request #791 from InsanusMokrassar/9.2.1
9.2.1
2023-09-29 22:39:04 +06:00
InsanusMokrassar 284fe58848 upfix of chatmember statuses serialization 2023-09-29 22:38:22 +06:00
InsanusMokrassar 38c9732da5 update ktor version 2023-09-29 22:17:42 +06:00
InsanusMokrassar dee13c03ae fix serialization/deserialization of chat member statuses 2023-09-29 22:16:10 +06:00
InsanusMokrassar 6103b70a47 start 9.2.1 2023-09-29 22:15:38 +06:00
InsanusMokrassar 96ffae2062 Update libs.versions.toml 2023-09-27 23:26:57 +06:00
InsanusMokrassar 4180721aed update dependencies 2023-09-27 18:18:30 +06:00
InsanusMokrassar 4ab0845333 migrate onto 9.3.0 2023-09-27 18:02:14 +06:00
InsanusMokrassar 3f9a4e95a3 update up to kotlin 1.9.20-Beta2 2023-09-27 18:02:14 +06:00
InsanusMokrassar 834d60ff16 update dependencies 2023-09-27 18:02:14 +06:00
InsanusMokrassar 650d96974f update dependencies 2023-09-27 18:02:14 +06:00
InsanusMokrassar 7f5cd0567b Merge pull request #789 from InsanusMokrassar/9.2.0
9.2.0
2023-09-25 23:27:06 +06:00
InsanusMokrassar af159b89b6 update changelog and readme 2023-09-25 23:26:05 +06:00
InsanusMokrassar efe286c181 improvements and fixes in web apps api 2023-09-25 23:21:48 +06:00
InsanusMokrassar 821bb5b45c improve cloud storage 2023-09-25 20:23:37 +06:00
InsanusMokrassar c92ed92f7c add opportunity to create Hex from rgb 2023-09-25 16:26:27 +06:00
InsanusMokrassar 88f6b349ea fixes in onEvent/onWriteAccessRequested/onContactRequested 2023-09-25 14:14:04 +06:00
InsanusMokrassar 6c4afac8f8 small refactor of chat member 2023-09-24 21:50:32 +06:00
InsanusMokrassar 6273990b00 fix in chat member deserializing 2023-09-24 21:33:26 +06:00
InsanusMokrassar 1a1fd926dd temporarily change request id main type to ushort 2023-09-24 21:12:48 +06:00
InsanusMokrassar affa2a3a57 ChatAdministratorRightsImpl -> ChatCommonAdministratorRights 2023-09-24 20:11:58 +06:00
InsanusMokrassar 73a748d8b3 ChatAdministratorRights -> ChatAdministratorRightsImpl in reply keyboards 2023-09-24 20:08:46 +06:00
InsanusMokrassar fa4d264df4 add preview callbacks support 2023-09-23 00:40:32 +06:00
InsanusMokrassar 1b1da33882 add CloudStorage support 2023-09-23 00:15:58 +06:00
InsanusMokrassar ccfb774f33 update promoteChatMember 2023-09-22 23:33:56 +06:00
InsanusMokrassar 5215e8a315 add support of stories rights 2023-09-22 22:53:14 +06:00
InsanusMokrassar 97a3901cb9 improvements of WriteAccessAllowed 2023-09-22 21:55:22 +06:00
InsanusMokrassar 034e87a8ef add support of several new things in bot api 2023-09-22 21:45:28 +06:00
InsanusMokrassar 156fbd72d4 start 9.2.0 2023-09-22 21:10:21 +06:00
InsanusMokrassar 8ec3e01737 Update build.gradle 2023-09-02 09:36:11 +06:00
InsanusMokrassar 1655bedabe Merge pull request #788 from InsanusMokrassar/9.1.2
9.1.2
2023-09-01 03:52:37 +06:00
InsanusMokrassar ac6b580a7e fixes in message content serialization 2023-09-01 02:42:39 +06:00
InsanusMokrassar c6692c2509 start 9.1.2 2023-09-01 02:20:53 +06:00
InsanusMokrassar 12846a68b9 Merge pull request #785 from InsanusMokrassar/9.1.1
9.1.1
2023-08-31 20:39:30 +06:00
InsanusMokrassar 21f5808b12 small refactoring 2023-08-31 19:35:01 +06:00
InsanusMokrassar 64244a60fe potential fix of incorrect parsing in 'RawMessageEntity' 2023-08-31 19:20:42 +06:00
InsanusMokrassar 4cd7fdb436 start 9.1.1 2023-08-31 19:03:36 +06:00
InsanusMokrassar 6daf98d47d Merge pull request #783 from InsanusMokrassar/9.1.0
9.1.0
2023-08-20 02:35:25 +06:00
InsanusMokrassar c260597799 fixes in poll answer 2023-08-20 02:30:36 +06:00
InsanusMokrassar d59e204002 rename PollAnswer inheritors 2023-08-20 00:27:33 +06:00
InsanusMokrassar 117d891ff2 update changelog and PollAnswer 2023-08-19 23:55:59 +06:00
InsanusMokrassar 1e451af508 update telegram bot api support info 2023-08-19 18:40:12 +06:00
InsanusMokrassar 051f5e22e7 fix of createResend in story content 2023-08-19 18:15:54 +06:00
InsanusMokrassar 6873c23309 complete story support 2023-08-19 16:41:08 +06:00
InsanusMokrassar a65971be00 start add stories 2023-08-19 00:31:36 +06:00
InsanusMokrassar 4b5baaff8c add suport of unpinAllGeneralForumTopicMessages 2023-08-18 23:34:44 +06:00
InsanusMokrassar 0840d2e083 add emoji_status_expiration_date support in Chat 2023-08-18 23:31:30 +06:00
InsanusMokrassar 085a225eb4 add support of voter_chat in PollAnswer 2023-08-18 23:27:15 +06:00
InsanusMokrassar b575871a8e update dependencies 2023-08-18 23:13:56 +06:00
InsanusMokrassar c96e162845 start 9.1.0 2023-08-18 23:05:43 +06:00
InsanusMokrassar c471d59b3c Merge pull request #774 from InsanusMokrassar/9.0.0
9.0.0
2023-07-01 14:37:43 +06:00
InsanusMokrassar 187f340e88 fixes in webappuser 2023-07-01 14:32:58 +06:00
InsanusMokrassar 77ea1f741e fill changelog 2023-07-01 14:30:37 +06:00
InsanusMokrassar bff2713bbd one more fix of triggers 2023-07-01 14:26:46 +06:00
InsanusMokrassar cf666aad11 update gradle wrapper 2023-07-01 14:24:35 +06:00
InsanusMokrassar 93e72230a1 update changelog 2023-07-01 14:17:42 +06:00
InsanusMokrassar b81308da8b get back default filters for the queries but fix them 2023-07-01 13:53:26 +06:00
InsanusMokrassar 0441b53da2 all query triggers got null default subcontext filter 2023-07-01 03:46:29 +06:00
InsanusMokrassar 4853a5b3ad improve docs of onInlineQuery 2023-06-30 22:46:58 +06:00
InsanusMokrassar 40a0d2c37d fixes in default filters of updates 2023-06-30 22:42:48 +06:00
InsanusMokrassar 2e815a4c37 #773 fix, improvements in updates handling 2023-06-30 16:35:14 +06:00
InsanusMokrassar 81ed820602 Migrate onto 9.0.0 and update dependenices
Update libs.versions.toml

Update CHANGELOG.md

Update gradle.properties

Update CHANGELOG.md
2023-06-30 15:22:21 +06:00
InsanusMokrassar b3a657b7d6 make bots username nullable 2023-06-30 14:11:28 +06:00
InsanusMokrassar 8247e7c69c add backward compatibility change 2023-06-30 14:11:28 +06:00
InsanusMokrassar 67b7472868 Update libs.versions.toml 2023-06-30 02:55:27 +06:00
InsanusMokrassar 13e4740d0a improve Update.sourceChat 2023-06-29 13:45:08 +06:00
InsanusMokrassar 48db305541 start 8.1.1 2023-06-29 12:18:44 +06:00
InsanusMokrassar 6f512a144c Merge pull request #766 from InsanusMokrassar/8.1.0
8.1.0
2023-06-19 22:48:50 +06:00
InsanusMokrassar cf46139bef remove redundant ClassCastsExcluded 2023-06-19 22:14:20 +06:00
InsanusMokrassar 14a583e154 update microutils 2023-06-19 21:46:27 +06:00
InsanusMokrassar 5b6753c484 small fill of changelog 2023-06-16 14:43:59 +06:00
InsanusMokrassar f153b31464 improve class casts including filtering 2023-06-16 13:50:34 +06:00
InsanusMokrassar 6f60ecbf2e fill changelog 2023-06-16 12:14:12 +06:00
InsanusMokrassar 9c57ba4da7 rename new Tg methods 2023-06-16 12:12:50 +06:00
InsanusMokrassar d84d982eb4 Merge pull request #768 from klimatov/makeTgDeepLink
added support for the tg:// format for deep links
2023-06-16 12:09:01 +06:00
Pavel Klimatov 2f6f40362a added support for the tg:// format for deep links 2023-06-16 01:54:06 +07:00
InsanusMokrassar e15b18fbcf upgrade up to 8.1.0 2023-06-12 12:34:36 +06:00
InsanusMokrassar ad5cc6ade6 add excluding of impls 2023-06-12 12:25:43 +06:00
InsanusMokrassar 6b94215a7c 8.0.2 2023-06-12 10:42:54 +06:00
InsanusMokrassar 9c98411bcb Update README.md 2023-06-10 18:16:01 +06:00
InsanusMokrassar b235ab1c28 update dokka version 2023-06-09 12:05:29 +06:00
InsanusMokrassar d4e11494e8 update kdocs of buttons creation shortcuts 2023-06-04 12:38:40 +06:00
InsanusMokrassar e6dbf2bde9 Merge pull request #760 from InsanusMokrassar/8.0.1
8.0.1
2023-06-03 00:58:09 +06:00
InsanusMokrassar 5aa0284f28 Update CHANGELOG.md 2023-06-03 00:45:33 +06:00
InsanusMokrassar 8b2a50a21f Update libs.versions.toml 2023-06-03 00:44:46 +06:00
InsanusMokrassar a7839df748 Update CHANGELOG.md 2023-06-02 18:00:43 +06:00
InsanusMokrassar 3155969954 Update libs.versions.toml 2023-06-02 17:58:53 +06:00
InsanusMokrassar 067a0bf229 Update gradle.properties 2023-06-02 17:57:29 +06:00
InsanusMokrassar 009991fa88 Merge pull request #754 from InsanusMokrassar/8.0.0
8.0.0
2023-05-31 01:34:34 +06:00
InsanusMokrassar ffbe8fc5e0 Update libs.versions.toml 2023-05-31 01:20:07 +06:00
InsanusMokrassar 610ed95296 Update CHANGELOG.md 2023-05-30 14:15:10 +06:00
InsanusMokrassar d3f4a895ff Update libs.versions.toml 2023-05-30 14:14:39 +06:00
InsanusMokrassar 51c7c376d7 all previous deprecations have been removed 2023-05-28 20:39:46 +06:00
InsanusMokrassar 393197eca1 fixes 2023-05-27 18:33:28 +06:00
InsanusMokrassar 67096f8e0e update dependencies 2023-05-27 18:19:14 +06:00
InsanusMokrassar c312a05d6b start 8.0.0 2023-05-27 18:10:52 +06:00
InsanusMokrassar b575695f90 Merge pull request #753 from InsanusMokrassar/7.1.3
7.1.3
2023-05-19 22:50:22 +06:00
InsanusMokrassar 65bcf83517 update ClassCasts 2023-05-19 22:42:42 +06:00
InsanusMokrassar f07a179448 InputFile kdocs improvements 2023-05-18 13:06:41 +06:00
InsanusMokrassar ed2c447730 fix of #645 2023-05-18 12:59:35 +06:00
InsanusMokrassar cb4c48d025 waitMediaContent/waitMediaContentMessage/onMediaContent 2023-05-18 11:45:27 +06:00
InsanusMokrassar 1a21fa85ac fixes 2023-05-18 11:39:47 +06:00
InsanusMokrassar 191fa5406d start 7.1.3 2023-05-11 20:45:24 +06:00
InsanusMokrassar 6959dacfc4 Merge pull request #752 from InsanusMokrassar/7.1.2
7.1.2
2023-05-06 13:28:42 +06:00
InsanusMokrassar ced11ab336 downgrade microutils and revert coroutines 2023-05-06 13:25:27 +06:00
InsanusMokrassar 6686aef4fa update dependencies in preview mode 2023-05-06 12:25:24 +06:00
InsanusMokrassar 9ede545e56 add serialization of Stickers 2023-05-06 12:00:08 +06:00
InsanusMokrassar a74066cf62 start 7.1.2 2023-05-06 11:38:05 +06:00
InsanusMokrassar 0a7e99bbb3 Merge pull request #750 from InsanusMokrassar/7.1.1
7.1.1
2023-05-02 01:48:06 +06:00
InsanusMokrassar 913f584469 update kotlin poet 2023-05-01 02:15:27 +06:00
InsanusMokrassar 20278804bf potential fix of exception printing on skipping of timeout exceptions 2023-05-01 01:52:24 +06:00
InsanusMokrassar 631f1b9427 start 7.1.1, update dependencies and add fixes in makeLinkToMessage 2023-04-30 21:00:27 +06:00
InsanusMokrassar 5e0106beb5 Update README.md 2023-04-29 11:19:06 +06:00
InsanusMokrassar d37e01f93e Merge pull request #748 from InsanusMokrassar/renovate/ksp
Update ksp to v1.8.21-1.0.11
2023-04-28 00:05:28 +06:00
renovate[bot] d4492ec7ac Update ksp to v1.8.21-1.0.11 2023-04-27 17:42:32 +00:00
InsanusMokrassar 60d24259f4 Merge pull request #747 from InsanusMokrassar/7.1.0
7.1.0
2023-04-22 11:08:29 +06:00
InsanusMokrassar 8e6b3b7260 remove redundant class casts 2023-04-22 10:51:37 +06:00
InsanusMokrassar e2cbd5ee0b update deprecation in old updates variables 2023-04-22 10:41:26 +06:00
InsanusMokrassar 1e87677ea7 Update ChatMemberUpdated.kt 2023-04-22 01:26:16 +06:00
InsanusMokrassar cb3494cb39 Remove redundant chats folder invite link 2023-04-22 01:24:55 +06:00
InsanusMokrassar ce81be9dcb Update UpdateTypes.kt 2023-04-22 01:10:33 +06:00
InsanusMokrassar 2cc02c8c85 Update UpdateTypes.kt 2023-04-22 01:05:34 +06:00
InsanusMokrassar f5b2ee79d6 add info about supported tgbotapi version 2023-04-22 00:28:54 +06:00
InsanusMokrassar 0ba6ebb20f add editions for inline messages 2023-04-22 00:18:18 +06:00
InsanusMokrassar 3d2df4e255 fixes in SwitchInlineQueryChosenChat 2023-04-21 23:53:53 +06:00
InsanusMokrassar 33b6ff1c1e improvements in onDeepLink and waitDeepLink 2023-04-21 23:05:58 +06:00
InsanusMokrassar 2859f8ca2f hotfix in buttonField 2023-04-21 22:56:07 +06:00
InsanusMokrassar f1aa67ceda add support of InlineQueryResultsButton 2023-04-21 22:26:11 +06:00
InsanusMokrassar 1c66d1e2fc add support of WriteAccessAllowed#webAppName 2023-04-21 21:47:14 +06:00
InsanusMokrassar 44e6d7adbc add support of SwitchInlineQueryChosenChatInlineKeyboardButton 2023-04-21 21:42:40 +06:00
InsanusMokrassar 61a6d4a880 add support of via_chat_folder_invite_link 2023-04-21 21:13:15 +06:00
InsanusMokrassar e37237cb71 add support of get/set MyName 2023-04-21 20:51:22 +06:00
InsanusMokrassar 9a5a196e41 add support of custom emojies in mv2 and html 2023-04-21 20:47:13 +06:00
InsanusMokrassar 68f6d8553c start 7.1.0 2023-04-21 18:46:20 +06:00
InsanusMokrassar 6fe8e73fca Merge pull request #744 from InsanusMokrassar/7.0.2
7.0.2
2023-04-19 22:53:00 +06:00
InsanusMokrassar 241545c0cb fix in updates unique calculation and update dependencies 2023-04-19 20:29:40 +06:00
InsanusMokrassar 3b2310ece1 fixes in unique updates handling 2023-04-19 19:36:43 +06:00
InsanusMokrassar e1adde0978 Update libs.versions.toml 2023-04-18 14:15:45 +06:00
InsanusMokrassar 3b17bce71a fix changelog and readme 2023-04-18 12:55:06 +06:00
InsanusMokrassar 999efc64eb complete native integration 2023-04-18 12:40:45 +06:00
InsanusMokrassar 05c99642cb update packages publishing to install openssl 2023-04-18 03:26:58 +06:00
InsanusMokrassar cd6f4831ae MultipleClientKtorRequestsExecutor, DefaultKtorRequestsExecutor, KtorRequestsExecutor as expect class 2023-04-18 03:13:41 +06:00
InsanusMokrassar 2778315aed add support of fallback handlers in behaviour builder with fsm 2023-04-17 15:50:04 +06:00
InsanusMokrassar ff8d67a780 potential fix in native 2023-04-13 19:26:58 +06:00
InsanusMokrassar 2a5f9a629d fixes in TextSourceSerializer 2023-04-13 13:58:20 +06:00
InsanusMokrassar 75b27858dd update dependencies 2023-04-13 12:28:51 +06:00
InsanusMokrassar 034e2d7ff3 Update libs.versions.toml 2023-04-04 01:43:53 +06:00
InsanusMokrassar 1f69c16f2a fix of build 2023-04-04 00:21:59 +06:00
InsanusMokrassar 8d24512413 experimentally add support of natives 2023-04-03 23:33:54 +06:00
InsanusMokrassar 09009003e3 start 7.0.2 2023-04-03 23:07:10 +06:00
InsanusMokrassar 048486146c Merge pull request #738 from InsanusMokrassar/7.0.1
7.0.1
2023-03-16 20:14:57 +06:00
InsanusMokrassar b688fa570a ChatMemberUpdated now inherits WithChat and fill changes related to WithChat 2023-03-16 19:32:43 +06:00
InsanusMokrassar 0eba0c4e15 improvements in same-notations 2023-03-16 19:29:35 +06:00
InsanusMokrassar f8bbfa2b1e Merge pull request #737 from Tolsi/more-same-flow-filters
more "same" flow filters were added
2023-03-16 18:52:13 +06:00
InsanusMokrassar fec2715dc1 start 7.0.1 2023-03-16 18:48:36 +06:00
Sergey Tolmachev 941a25b116 more "same" flow filters were added 2023-03-16 16:53:39 +05:30
InsanusMokrassar 741d808db2 Merge pull request #736 from InsanusMokrassar/7.0.0
7.0.0
2023-03-11 22:38:33 +06:00
InsanusMokrassar 69683a4e6a upfill changelog 2023-03-11 22:38:09 +06:00
InsanusMokrassar e5a48e9684 rework of multipart files with fixes in new sticker sets 2023-03-11 21:17:59 +06:00
InsanusMokrassar 6722ab5f50 add several extensions for addStickerToSet 2023-03-11 17:58:48 +06:00
InsanusMokrassar 810b2ab5a1 add Sticker#asInputSticker 2023-03-11 17:39:12 +06:00
InsanusMokrassar 5992fdd456 Update Sticker.kt 2023-03-11 01:30:12 +06:00
InsanusMokrassar 3c4f8787a6 mask position is nullable in mask stickers and sticker sets 2023-03-11 01:18:39 +06:00
InsanusMokrassar 0c24aa1270 add sticker format to stickerset 2023-03-11 00:53:36 +06:00
InsanusMokrassar 988d9995c5 add sticker format to sticker object 2023-03-11 00:46:20 +06:00
InsanusMokrassar f75df0a425 Update microutils 2023-03-10 22:34:48 +06:00
InsanusMokrassar 9f14eb2ca3 update microutils 2023-03-10 15:08:44 +06:00
InsanusMokrassar 6f9f880b79 deprecations removing 2023-03-10 14:59:59 +06:00
InsanusMokrassar 2d2310daca fixes in build 2023-03-10 14:43:34 +06:00
InsanusMokrassar dff04d26ca add support of setCustomEmojiStickerSetThumbnail 2023-03-10 14:29:55 +06:00
InsanusMokrassar 4390c12180 update uploadStickerFile 2023-03-10 14:24:42 +06:00
InsanusMokrassar 1b4d13e452 rework of addStickerToSet 2023-03-10 14:20:34 +06:00
InsanusMokrassar afda5e0e7f rework of create new sticker set 2023-03-10 14:00:57 +06:00
InsanusMokrassar cd354e9456 upgrade version up to 7.0.0 2023-03-10 13:40:15 +06:00
InsanusMokrassar b0e32e8ad9 add opportunity to send emoji with sticker 2023-03-10 12:43:09 +06:00
InsanusMokrassar 79c9e6258f add setStickerMaskPosition 2023-03-10 12:28:16 +06:00
InsanusMokrassar 90b9c66bea rename all thumb* usages 2023-03-10 12:24:12 +06:00
InsanusMokrassar e7b21dcd3d rename setStickerSetThumb to setStickerSetThumbnail 2023-03-10 12:11:17 +06:00
InsanusMokrassar e30361ad1e rename thumb field 2023-03-10 12:02:40 +06:00
InsanusMokrassar d8c659f866 add setStickerKeywords 2023-03-10 11:32:44 +06:00
InsanusMokrassar 5533303d86 add setStickerEmojiList 2023-03-10 11:28:21 +06:00
InsanusMokrassar 1633b9baaf add deleteStickerSet 2023-03-10 11:18:37 +06:00
InsanusMokrassar a9725eb439 add support of setStickerSetTitle 2023-03-10 11:16:13 +06:00
InsanusMokrassar a0aadef31b add support of localized bot description 2023-03-10 00:34:57 +06:00
InsanusMokrassar ac88fd1d02 start 6.2.0 2023-03-10 00:23:16 +06:00
InsanusMokrassar e3e318312d Merge pull request #734 from InsanusMokrassar/6.1.0
6.1.0
2023-03-08 17:10:47 +06:00
InsanusMokrassar 4c08fb7d26 small improvement in #732 solution 2023-03-08 16:41:10 +06:00
InsanusMokrassar d83ff12560 update dependencies 2023-03-08 16:38:24 +06:00
InsanusMokrassar 818ef8481d fix of #732 2023-03-08 16:33:41 +06:00
InsanusMokrassar f8cd446133 start 6.1.0 2023-03-08 16:24:31 +06:00
InsanusMokrassar 804b991921 update kdocs 2023-03-04 21:18:50 +06:00
InsanusMokrassar 817068aa71 Merge pull request #731 from InsanusMokrassar/renovate/dokka
Update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.8.10
2023-03-04 10:48:42 +06:00
renovate[bot] 0cca343612 Update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.8.10 2023-03-04 03:54:29 +00:00
InsanusMokrassar 6532bf255b Merge pull request #730 from InsanusMokrassar/6.0.3
6.0.3
2023-03-02 23:28:16 +06:00
InsanusMokrassar 421d5ae9e3 Update CHANGELOG.md 2023-03-02 21:59:58 +06:00
InsanusMokrassar 54f1181a14 Update libs.versions.toml 2023-03-02 21:59:26 +06:00
InsanusMokrassar f616a02f7c hotfixes 2023-03-02 20:33:49 +06:00
InsanusMokrassar f1deb93147 changes in InlineQuery 2023-03-02 19:33:15 +06:00
InsanusMokrassar 2300b44aae fix in CallbackQuery 2023-03-02 12:43:39 +06:00
InsanusMokrassar fe88cf037a fixes in deeplinks 2023-03-02 08:32:06 +06:00
InsanusMokrassar 89920abe35 start 6.0.3 2023-03-02 08:31:35 +06:00
InsanusMokrassar 4c4aa491cb Merge pull request #729 from InsanusMokrassar/6.0.2
6.0.2
2023-03-01 15:33:43 +06:00
InsanusMokrassar f0a4425be9 Update CHANGELOG.md 2023-03-01 15:31:34 +06:00
InsanusMokrassar 6c8af4cab3 fixes in media groups collecting and kdocs 2023-03-01 13:14:18 +06:00
InsanusMokrassar 017d57e5e5 fixes 2023-03-01 12:38:50 +06:00
InsanusMokrassar 5a456bcdbf add opportunity to collect media groups with debounce 2023-03-01 11:55:17 +06:00
InsanusMokrassar 4182d8f3fe start 6.0.2 2023-03-01 00:59:08 +06:00
InsanusMokrassar c6e2cba09b Merge pull request #728 from InsanusMokrassar/6.0.1
6.0.1
2023-02-28 20:41:35 +06:00
InsanusMokrassar 8dd3eefd15 Update CHANGELOG.md 2023-02-28 19:59:23 +06:00
InsanusMokrassar b72d4da8f0 Update libs.versions.toml 2023-02-28 19:57:11 +06:00
InsanusMokrassar ebd023669d start 6.0.1 2023-02-28 19:55:29 +06:00
InsanusMokrassar f7be4e557e Merge pull request #726 from InsanusMokrassar/6.0.0
6.0.0
2023-02-28 13:27:41 +06:00
InsanusMokrassar ec434c6af4 fill changelog with dependencies updates 2023-02-27 22:42:28 +06:00
InsanusMokrassar 0398590de6 update microutils version to release one 2023-02-27 22:40:26 +06:00
InsanusMokrassar 9ef1b54ada *.link renames 2023-02-27 22:32:08 +06:00
InsanusMokrassar c30ce5c803 revert gradle wrapper version 2023-02-27 20:10:45 +06:00
InsanusMokrassar c0a50bccb0 update publish.gradle and gradle wrapper version 2023-02-27 18:40:01 +06:00
InsanusMokrassar e0cd7dc512 TelegramBot.resend 2023-02-27 18:27:23 +06:00
InsanusMokrassar 6ff621b428 Add triggers and waiters for VisualMediaGroupPartContent 2023-02-27 18:10:33 +06:00
InsanusMokrassar 964a61749c update dependencies 2023-02-27 17:57:32 +06:00
InsanusMokrassar 17930091ac start 6.0.0 2023-02-27 17:55:49 +06:00
InsanusMokrassar 2271beadfb Update README.md 2023-02-24 15:31:33 +06:00
root 44c48a8462 Add files via upload 2023-02-24 15:30:36 +06:00
InsanusMokrassar 4d35f89ad1 Merge pull request #722 from InsanusMokrassar/5.2.1
5.2.1
2023-02-21 21:44:53 +06:00
InsanusMokrassar 174706b189 changelog fill and callback query improvements 2023-02-19 18:35:36 +06:00
InsanusMokrassar fe17312bb5 Update LiveFlowLocation.kt 2023-02-17 15:50:49 +06:00
InsanusMokrassar d8b5789cd2 5.2.1 2023-02-17 15:48:02 +06:00
InsanusMokrassar f27d0916db Merge pull request #721 from InsanusMokrassar/5.2.0
hotfix in LiveFlowLocation (5.2.0)
2023-02-17 15:42:17 +06:00
InsanusMokrassar fa0a2818a0 hotfix in LiveFlowLocation 2023-02-17 15:40:49 +06:00
InsanusMokrassar 2d3fe45389 Merge pull request #720 from InsanusMokrassar/5.2.0
5.2.0
2023-02-17 15:36:27 +06:00
InsanusMokrassar 02b5d282d3 now it is possible to handle send content message in handleLiveLocation 2023-02-17 15:31:40 +06:00
InsanusMokrassar 7795bc2b50 LiveLocationProvider#message now is public, but as value instead of variable 2023-02-17 15:28:41 +06:00
InsanusMokrassar a95365a691 update microutils up to 0.16.10 2023-02-17 14:03:00 +06:00
InsanusMokrassar 07082bf896 start 5.2.0 2023-02-17 14:02:18 +06:00
InsanusMokrassar 6a3fc47f62 Merge pull request #717 from InsanusMokrassar/5.1.1
5.1.1
2023-02-17 14:01:21 +06:00
InsanusMokrassar 1c94e86b40 small improvements 2023-02-13 12:06:28 +06:00
InsanusMokrassar 0416b200b8 fixes :) 2023-02-13 12:03:23 +06:00
InsanusMokrassar 48c4e90912 fixes 2023-02-13 12:00:09 +06:00
InsanusMokrassar 5fc88e89b9 Fixes in content waiting expectators 2023-02-13 11:49:36 +06:00
InsanusMokrassar dad42cf939 makeUserLink 2023-02-13 11:16:49 +06:00
InsanusMokrassar 041c3ecc1b start 5.1.1 2023-02-11 18:57:46 +06:00
InsanusMokrassar 103dd949ce Merge pull request #712 from InsanusMokrassar/5.1.0
5.1.0
2023-02-06 14:08:03 +06:00
InsanusMokrassar e3acdf1802 fix of #697 2023-02-06 13:28:38 +06:00
InsanusMokrassar f81d28dd5f fill changelog and fix several issues 2023-02-06 12:41:19 +06:00
InsanusMokrassar 8e02a702f1 improvements in ChatPermissions 2023-02-06 12:04:30 +06:00
InsanusMokrassar cb7a343208 improve copying functions in chat permissions 2023-02-06 11:36:00 +06:00
InsanusMokrassar 3be8ddae74 rights copying hotfix 2023-02-06 11:29:07 +06:00
InsanusMokrassar 9cd1862300 add opportunity to copy chat permissions 2023-02-06 11:25:31 +06:00
InsanusMokrassar 81fdf50217 ChatPermissions now is interface 2023-02-06 10:26:48 +06:00
InsanusMokrassar 554d47e301 Update README.md 2023-02-06 00:59:33 +06:00
InsanusMokrassar b66ae7ad77 Update README.md 2023-02-06 00:58:36 +06:00
InsanusMokrassar 4ddced8e26 Merge pull request #715 from madhead/feature/replace_can_send_media_messages_field
Replaced the fields `can_send_media_messages`…
2023-02-06 00:25:40 +06:00
InsanusMokrassar d003047a6c Merge branch '5.1.0' into feature/replace_can_send_media_messages_field 2023-02-06 00:24:19 +06:00
InsanusMokrassar 1e4a78c812 add support for independent chat permissions 2023-02-06 00:21:46 +06:00
InsanusMokrassar 2a3ffd707e improvements in KeyboardButtonRequestChat 2023-02-05 23:41:02 +06:00
InsanusMokrassar aca076381b renames in request buttons 2023-02-05 23:26:41 +06:00
InsanusMokrassar 12ac227d2d small fix in request chat button 2023-02-05 23:18:14 +06:00
InsanusMokrassar e235280253 fixes in RequestId 2023-02-05 22:29:21 +06:00
InsanusMokrassar 0da0c4e894 Revert "fixes in keyboards"
This reverts commit ae8ef0dd3c.
2023-02-05 22:25:43 +06:00
InsanusMokrassar 47f1509ecc add RequestId.random 2023-02-05 22:01:43 +06:00
InsanusMokrassar ae8ef0dd3c fixes in keyboards 2023-02-05 21:47:15 +06:00
InsanusMokrassar 687f9e95fa support of user shared/chat shared 2023-02-05 20:46:25 +06:00
InsanusMokrassar 6dbe5f024f Merge pull request #713 from madhead/feature/user_chat_id_in_chat_join_request
Add support for `user_chat_id` field
2023-02-05 18:34:36 +06:00
InsanusMokrassar a39a276299 Update libs.versions.toml 2023-02-05 18:34:05 +06:00
InsanusMokrassar 9f57e5685f Merge branch '5.1.0' into feature/user_chat_id_in_chat_join_request 2023-02-05 18:33:43 +06:00
root bdcba202c9 Update ChatJoinRequest.kt 2023-02-05 18:32:46 +06:00
InsanusMokrassar 3c48dcb2a6 downgrade kotlin 2023-02-05 18:26:29 +06:00
InsanusMokrassar b59d94d0a9 Update libs.versions.toml 2023-02-05 17:41:45 +06:00
InsanusMokrassar db74b55c41 Update CHANGELOG.md 2023-02-05 17:41:45 +06:00
InsanusMokrassar 37b5af235a start 5.1.0 2023-02-05 17:41:07 +06:00
InsanusMokrassar e2b05ce575 Merge pull request #711 from InsanusMokrassar/5.0.2
5.0.2
2023-02-05 17:34:42 +06:00
InsanusMokrassar 49851ee3d7 update micro_utils version 2023-02-05 16:22:33 +06:00
madhead cd596cc66d Replaced the fields can_send_media_messages in the classes RestrictedChatMember and ChatPermissions with separate fields can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes for different media types. 2023-02-03 22:16:21 +01:00
madhead 5667ae8095 Added the field user_chat_id to the class ChatJoinRequest. 2023-02-03 21:26:55 +01:00
InsanusMokrassar f29996aac8 Update libs.versions.toml 2023-02-04 00:56:47 +06:00
InsanusMokrassar 32613bacc6 Update CHANGELOG.md 2023-02-04 00:56:06 +06:00
InsanusMokrassar cf9dba0ecc start 5.1.0 2023-02-04 00:55:46 +06:00
InsanusMokrassar a8c4879769 update dependencies 2023-02-02 09:25:21 +06:00
InsanusMokrassar f083e94c05 fix in BehaviourContext.onEditedContentMessage 2023-02-02 09:24:16 +06:00
InsanusMokrassar c332413e5a start 5.0.2 2023-02-02 09:21:57 +06:00
InsanusMokrassar c9f3d99cd7 Merge pull request #708 from InsanusMokrassar/5.0.1
5.0.1
2023-01-18 23:45:19 +06:00
InsanusMokrassar cf3d07a20d update microutils and fill changelog 2023-01-18 23:44:39 +06:00
InsanusMokrassar e40548e558 fix of return type in SendMediaGroup and fill changelog 2023-01-14 22:09:27 +06:00
InsanusMokrassar 4cd8e823c6 Update libs.versions.toml 2023-01-14 09:19:53 +06:00
InsanusMokrassar 9c7faec124 Merge pull request #707 from madhead/bugfix/SetChatAdministratorCustomTitle.serializer()
Fix the `requestSerializer` for `SetChatAdministratorCustomTitle`
2023-01-14 09:18:36 +06:00
InsanusMokrassar 2856880a6e start 5.0.1 2023-01-14 09:16:04 +06:00
madhead 5445fdbfa5 Fix the requestSerializer for SetChatAdministratorCustomTitle 2023-01-14 00:26:49 +01:00
InsanusMokrassar ba53d0c75d Update CHANGELOG.md 2022-12-31 16:23:24 +06:00
InsanusMokrassar 78f6cc5a97 Update README.md 2022-12-31 16:22:57 +06:00
InsanusMokrassar 6ab7c6f9d9 Update CHANGELOG.md 2022-12-31 16:21:49 +06:00
InsanusMokrassar cb6b33727e Merge pull request #704 from InsanusMokrassar/5.0.0
5.0.0
2022-12-31 16:04:38 +06:00
InsanusMokrassar bc4a2235c5 add opportunity in long polling to automatically delete webhook 2022-12-31 15:23:14 +06:00
InsanusMokrassar 300f94fd48 fixes 2022-12-31 15:23:14 +06:00
InsanusMokrassar 40617ad9c8 add support of Bot API 6.5 web apps 2022-12-31 15:23:14 +06:00
InsanusMokrassar bea056bba3 add full support of editGeneralForumTopic, closeGeneralForumTopic, reopenGeneralForumTopic, hideGeneralForumTopic, unhideGeneralForumTopic 2022-12-31 15:23:14 +06:00
InsanusMokrassar 9a33451f88 add support of forum_topic_edited, general_forum_topic_hidden, general_forum_topic_unhidden, and write_access_allowed 2022-12-31 15:23:14 +06:00
InsanusMokrassar c4659b558f add support of has_aggressive_anti_spam_enabled 2022-12-31 15:23:14 +06:00
InsanusMokrassar 5a30a07554 add support of has_hidden_members 2022-12-31 15:23:14 +06:00
InsanusMokrassar b064becb8a add support of topics for actions 2022-12-31 15:23:14 +06:00
InsanusMokrassar 463d5252bd editForumtTopic optional fields 2022-12-31 15:23:14 +06:00
InsanusMokrassar 8b5da90e28 add spoilered in telegrammedia 2022-12-31 15:23:14 +06:00
InsanusMokrassar febd6ce63c support of has_media_spoiler in message and sendPhoto/sendVideo/sendAnimation 2022-12-31 15:23:14 +06:00
InsanusMokrassar 8df8b87d54 add ReplyKeyboardMarkup 2022-12-31 15:23:14 +06:00
InsanusMokrassar c882717bcc start 5.0.0 2022-12-31 15:23:14 +06:00
InsanusMokrassar 4aa5924615 Update CHANGELOG.md 2022-12-31 15:17:21 +06:00
InsanusMokrassar 2b8e728559 fixes in updateHandlerWithMediaGroupsAdaptation 2022-12-31 15:17:21 +06:00
InsanusMokrassar 90ad34f114 Update BehaviourContextWithFSM.kt 2022-12-31 15:17:21 +06:00
InsanusMokrassar dbe2607994 Update BehaviourContextWithFSM.kt 2022-12-31 15:17:21 +06:00
InsanusMokrassar 692b668f92 fixes and improvements 2022-12-31 15:17:21 +06:00
InsanusMokrassar f2322e3e57 Fixes in DefaultBehaviourContextWithFSM 2022-12-31 15:17:21 +06:00
InsanusMokrassar ae002ead43 start 4.2.4 2022-12-31 15:17:21 +06:00
InsanusMokrassar 4197e13c54 Update CHANGELOG.md 2022-12-28 09:12:54 +06:00
InsanusMokrassar e09ea9a9b4 upfill changelog 2022-12-28 09:11:49 +06:00
InsanusMokrassar 2a32654d57 update miroutils and fill changelog 2022-12-28 09:05:32 +06:00
InsanusMokrassar 0fff553ce1 Update KtorRequestsExecutor.kt 2022-12-27 22:31:42 +06:00
InsanusMokrassar 33a1701f5b Update ExceptionsOnlyLimiter.kt 2022-12-27 22:30:47 +06:00
InsanusMokrassar f9a9f958ba Update ExceptionsOnlyLimiter.kt 2022-12-27 22:25:26 +06:00
InsanusMokrassar f686be0271 Update ExceptionsOnlyLimiter.kt 2022-12-27 22:22:03 +06:00
InsanusMokrassar 91307f3ebf improvements in ExceptionsOnlyLimiter 2022-12-26 21:37:48 +06:00
InsanusMokrassar 8e64205f53 several improvements in requests limiters 2022-12-26 20:49:29 +06:00
InsanusMokrassar 5434df1f02 Merge pull request #695 from InsanusMokrassar/4.2.2
4.2.2
2022-12-18 10:05:17 +06:00
InsanusMokrassar e56199ac9f Update CHANGELOG.md 2022-12-18 10:01:46 +06:00
InsanusMokrassar 3e199c6944 Update libs.versions.toml 2022-12-18 10:01:25 +06:00
InsanusMokrassar b43d9aefb9 fix of #694 2022-12-13 10:52:56 +06:00
InsanusMokrassar fe133bbde0 update microutils 2022-12-13 10:49:18 +06:00
InsanusMokrassar 332fe95adf start 4.2.2 2022-12-13 10:48:38 +06:00
InsanusMokrassar 1f416d4a28 Merge pull request #693 from InsanusMokrassar/4.2.1
4.2.1
2022-12-08 10:50:07 +06:00
InsanusMokrassar e626d8b5cc fix dependencies and fill changelog 2022-12-08 10:30:26 +06:00
InsanusMokrassar b906d605f4 temporal include of internal microutils build 2022-12-08 09:35:22 +06:00
InsanusMokrassar d3584e793c add makeChatLink 2022-12-08 09:17:58 +06:00
InsanusMokrassar f71ac51461 improve makeLinkToMessage 2022-12-08 09:06:54 +06:00
InsanusMokrassar 5fe8cf948a start 4.2.1 2022-12-08 08:57:54 +06:00
InsanusMokrassar 85ea101641 Merge pull request #691 from InsanusMokrassar/4.2.0
4.2.0
2022-12-05 11:52:47 +06:00
InsanusMokrassar dc3ecec5c7 Update CHANGELOG.md 2022-12-05 11:51:46 +06:00
InsanusMokrassar ebd5e1a37b Update libs.versions.toml 2022-12-05 05:57:43 +06:00
InsanusMokrassar 3da2e4fffb starr 4.2.0 2022-12-05 05:55:15 +06:00
InsanusMokrassar 9aea59b44b Update gradle-wrapper.properties 2022-11-28 16:37:50 +06:00
InsanusMokrassar 7bab96a9cd Merge pull request #686 from InsanusMokrassar/4.1.3
4.1.3
2022-11-28 16:35:58 +06:00
InsanusMokrassar a0c10d9a9a Update CHANGELOG.md 2022-11-27 17:38:24 +06:00
InsanusMokrassar e2901cb9f9 Update libs.versions.toml 2022-11-27 17:38:16 +06:00
InsanusMokrassar 3c60d074ba Update CHANGELOG.md 2022-11-24 19:28:32 +06:00
InsanusMokrassar f10cfdc5f1 Update libs.versions.toml 2022-11-24 19:27:56 +06:00
InsanusMokrassar 270f9a60c1 fixes 2022-11-20 13:28:23 +06:00
InsanusMokrassar 2b49a75a42 UserId = ChatId 2022-11-20 13:21:20 +06:00
InsanusMokrassar 9f7a348000 fill changelog 2022-11-18 23:08:16 +06:00
InsanusMokrassar 8cec74aa6a fix in gitea publishing name 2022-11-18 22:22:03 +06:00
InsanusMokrassar d1914c8045 update order of publishing steps 2022-11-18 22:16:47 +06:00
InsanusMokrassar baeb4848cf test version with outs variations of content message generics 2022-11-18 22:11:03 +06:00
InsanusMokrassar dbadcb3f5a Merge pull request #685 from InsanusMokrassar/4.1.2
4.1.2
2022-11-17 12:55:37 +06:00
InsanusMokrassar 13dd73dd63 update dependencies 2022-11-17 12:34:33 +06:00
InsanusMokrassar ceba86abcb Fixes in CallbackQuery waiters 2022-11-17 12:33:16 +06:00
InsanusMokrassar f6a0b1a19d start 4.1.2 2022-11-17 12:30:26 +06:00
InsanusMokrassar 4ed6e5c7b2 add gitea publication 2022-11-17 11:26:05 +06:00
InsanusMokrassar 7f43dc0815 Merge pull request #684 from InsanusMokrassar/4.1.1
4.1.1
2022-11-14 23:24:03 +06:00
InsanusMokrassar c72993017f FullChatIdentifierSerializer 2022-11-11 21:44:37 +06:00
InsanusMokrassar e8991f8f89 Add opportunity to create "IdChatIdentifier" with optional "threadId" 2022-11-11 12:59:42 +06:00
InsanusMokrassar 03cd4276a9 start 4.1.1 2022-11-11 12:58:11 +06:00
InsanusMokrassar 4427d76cd1 Update FUNDING.yml 2022-11-10 20:50:36 +06:00
InsanusMokrassar 00f504a095 Merge pull request #682 from InsanusMokrassar/4.1.0
4.1.0
2022-11-10 20:18:52 +06:00
InsanusMokrassar d167f10724 update dependencies 2022-11-10 17:02:47 +06:00
InsanusMokrassar a1ccbbdd51 small additions in changelog 2022-11-10 16:48:10 +06:00
InsanusMokrassar 925c4dae6c ChatIdWithThreadId, all chats ids now value classes, update chats ids hierarchy 2022-11-10 16:25:55 +06:00
InsanusMokrassar 1ec4507891 add new type of chats ids 2022-11-10 15:56:38 +06:00
InsanusMokrassar 236e47478f update ChatIdentifierWithThreadId and kdocs 2022-11-10 12:05:59 +06:00
InsanusMokrassar f2f15d7173 Update ChatIdentifierWithThreadId.kt 2022-11-10 09:24:32 +06:00
InsanusMokrassar 1b8ee5c4d7 Update ChatIdentifierWithThreadId.kt 2022-11-10 09:16:46 +06:00
InsanusMokrassar 304b281d80 Update ChatIdentifierWithThreadId.kt 2022-11-10 09:13:31 +06:00
InsanusMokrassar 733ad34289 Create ChatIdentifierWithThreadId.kt 2022-11-10 09:11:13 +06:00
InsanusMokrassar 39335b1dab Update gradle.properties 2022-11-10 09:01:14 +06:00
InsanusMokrassar 46fdbc02e8 Merge pull request #675 from InsanusMokrassar/4.0.0
4.0.0
2022-11-09 00:14:48 +06:00
InsanusMokrassar fbe8c9419d add send extensions with sendLiveLocations 2022-11-08 22:23:32 +06:00
InsanusMokrassar aba5810319 update supporting version of bot api 2022-11-08 22:14:18 +06:00
InsanusMokrassar 7d7658c64f add forumMessage/notForumMessage extensions 2022-11-08 22:11:44 +06:00
InsanusMokrassar c4fdc350ce add MessageFilterForums 2022-11-08 22:02:49 +06:00
InsanusMokrassar f700fab33f Revert "update kotlin version"
This reverts commit f078041dec.
2022-11-08 21:45:59 +06:00
InsanusMokrassar f078041dec update kotlin version 2022-11-08 21:43:15 +06:00
InsanusMokrassar dd6b688ae4 update deleteForumTopic 2022-11-08 17:29:43 +06:00
InsanusMokrassar 0d37147a36 add events waiters and triggers for topics 2022-11-08 15:07:37 +06:00
InsanusMokrassar ee0c017a79 add extensions sameTopic/sameThread Message 2022-11-08 15:07:37 +06:00
InsanusMokrassar b5d5eeb62d Update libs.versions.toml 2022-11-08 13:10:47 +06:00
InsanusMokrassar d715bc0a9e Merge pull request #677 from InsanusMokrassar/task/676-rework_of_media_groups
676 Rework of media groups
2022-11-08 13:09:21 +06:00
InsanusMokrassar 113621f619 Merge branch '4.0.0' into task/676-rework_of_media_groups 2022-11-08 13:07:55 +06:00
InsanusMokrassar 6a899f1217 add threadIdOrNull extension 2022-11-08 13:07:16 +06:00
InsanusMokrassar 6bc96162a8 add waiters and small improvement of triggers 2022-11-08 12:17:56 +06:00
InsanusMokrassar 4736610aa8 several fixes 2022-11-08 02:50:22 +06:00
InsanusMokrassar f6f07a5e8a fixes 2022-11-08 02:27:38 +06:00
InsanusMokrassar b32ce88a97 fixes 2022-11-08 01:51:27 +06:00
InsanusMokrassar 47f514a635 Merge branch '4.0.0' into task/676-rework_of_media_groups 2022-11-08 00:36:46 +06:00
InsanusMokrassar a80ed2ec57 fixes in replies 2022-11-08 00:21:16 +06:00
InsanusMokrassar b1bba43f29 update api according to new topics api 2022-11-08 00:11:14 +06:00
InsanusMokrassar 9df258805d add support of threads in send requests of core module 2022-11-07 23:02:58 +06:00
InsanusMokrassar 8654437293 add TelegramBot#getForumTopicIconStickers 2022-11-06 16:01:05 +06:00
InsanusMokrassar bdbca92fe5 add api extensions for topics requests 2022-11-06 15:55:15 +06:00
InsanusMokrassar aca4d90608 add support of forum requests 2022-11-06 15:29:48 +06:00
InsanusMokrassar ad75aef64f add support of forum topic service messages 2022-11-06 14:56:01 +06:00
InsanusMokrassar 5bf30bc6c6 fix 2022-11-06 14:28:16 +06:00
InsanusMokrassar acd3298d4d active_usernames support 2022-11-06 14:26:51 +06:00
InsanusMokrassar 3f6f04d00f add support of emoji_status_custom_emoji_id 2022-11-06 14:21:28 +06:00
InsanusMokrassar c7f372c1e3 can_manage_topics support 2022-11-06 14:18:34 +06:00
InsanusMokrassar 1ed620df85 add support of message thread id in media group messages 2022-11-06 14:10:09 +06:00
InsanusMokrassar 541e00fa03 start rework 2022-11-06 14:07:31 +06:00
InsanusMokrassar 867a46d397 add support of forum chats 2022-11-06 12:51:53 +06:00
InsanusMokrassar 8f4eb74e39 Update CHANGELOG.md 2022-11-05 20:07:23 +06:00
InsanusMokrassar 16cc49e412 start 4.0.0 2022-11-05 20:05:18 +06:00
InsanusMokrassar f58614e5be Merge pull request #674 from InsanusMokrassar/renovate/ksp
Update ksp to v1.7.20-1.0.8
2022-11-05 01:16:51 +06:00
renovate[bot] c3a09b53fc Update ksp to v1.7.20-1.0.8 2022-11-03 23:26:46 +00:00
InsanusMokrassar c8413e1d18 Merge pull request #671 from InsanusMokrassar/3.3.1
3.3.1
2022-11-01 12:43:18 +06:00
InsanusMokrassar 8b15296ee7 Update CHANGELOG.md 2022-11-01 12:41:35 +06:00
InsanusMokrassar 0fcc717269 Update libs.versions.toml 2022-11-01 12:41:24 +06:00
InsanusMokrassar 2ce26b4f1e Update CHANGELOG.md 2022-10-31 02:28:23 +06:00
InsanusMokrassar b5d499b623 Update libs.versions.toml 2022-10-31 02:27:23 +06:00
InsanusMokrassar 102515dc8a Update CHANGELOG.md 2022-10-31 02:25:16 +06:00
InsanusMokrassar 777a58ce9a a little bit refactor hasCommands 2022-10-30 20:10:12 +06:00
InsanusMokrassar 7471da4ff0 update version of library 2022-10-30 19:48:04 +06:00
InsanusMokrassar e753db0e71 Merge pull request #662 from InsanusMokrassar/renovate/korlibs
Update korlibs to v3.3.0
2022-10-28 18:54:53 +06:00
InsanusMokrassar 70984424e3 Merge pull request #669 from madhead/feature/initial-filters
Add `hasCommands` / `hasNoCommands` extensions on `CommonMessage`
2022-10-28 18:54:16 +06:00
InsanusMokrassar c8354a330e Merge pull request #670 from InsanusMokrassar/renovate/ktor
Update ktor to v2.1.3
2022-10-28 18:53:38 +06:00
InsanusMokrassar 037ad8b87c Update gradle.properties 2022-10-28 18:51:52 +06:00
renovate[bot] 89550107d6 Update ktor to v2.1.3 2022-10-28 11:44:50 +00:00
madhead 86cc7cfb3d Add hasCommands / hasNoCommands extensions on CommonMessage
These extensions are meant to be used as arguments to the `initialFilter` parameter in behaviour builder triggers.
2022-10-24 03:46:30 +02:00
renovate[bot] 858586e608 Update korlibs to v3.3.0 2022-10-23 00:42:04 +00:00
InsanusMokrassar d9846f27c9 Merge pull request #665 from InsanusMokrassar/3.3.0
3.3.0
2022-10-22 18:00:02 +06:00
InsanusMokrassar c10da2a10a Update CHANGELOG.md 2022-10-22 17:59:54 +06:00
InsanusMokrassar 8ed216619d deprecate TelegramBot#getStickerSet 2022-10-22 17:41:55 +06:00
InsanusMokrassar 62a9c687d5 update dependencies and changelog 2022-10-22 14:33:43 +06:00
InsanusMokrassar c2918c308f Merge pull request #668 from d1snin/wait-command-message
Added `BehaviourContext.waitCommandMessage` supporting `BotCommand`
2022-10-20 06:56:06 +06:00
d1snin 81fbff0bf5 added BehaviourContext.waitCommandMessage supporting BotCommand 2022-10-19 22:15:15 +03:00
InsanusMokrassar 54fb58de81 Update CHANGELOG.md 2022-10-19 19:25:01 +06:00
InsanusMokrassar 94ed4fed10 Update libs.versions.toml 2022-10-19 19:19:14 +06:00
InsanusMokrassar 63ceec70ca Merge pull request #664 from d1snin/bot-command
added `EntitiesBuilder.botCommand` and `EntitiesBuilder.botCommandln`…
2022-10-13 23:32:58 +06:00
root 636382fc8f Update EntitiesBuilder.kt 2022-10-13 23:31:41 +06:00
root ac7bf60182 Update BotCommandTextSource.kt 2022-10-13 23:30:34 +06:00
root bd91d4a0c0 Update CommandHandling.kt 2022-10-13 23:29:36 +06:00
d1snin 7488eb9d4b added botCommand text source factory function supporting BotCommand 2022-10-13 19:56:26 +03:00
InsanusMokrassar 6fcd248aff update microutils 2022-10-13 18:25:44 +06:00
InsanusMokrassar 5fa1804003 start 0.3.3 2022-10-13 18:24:59 +06:00
d1snin 0c9919e9e7 added command handling functions supporting BotCommand 2022-10-12 21:04:20 +03:00
d1snin 9405aa4467 added EntitiesBuilder.botCommand and EntitiesBuilder.botCommandln overloads supporting BotCommand 2022-10-12 20:57:42 +03:00
InsanusMokrassar 4f75bc792d Merge pull request #659 from InsanusMokrassar/3.2.7
3.2.7
2022-10-01 23:36:51 +06:00
InsanusMokrassar fda53cf171 update dependencies 2022-10-01 22:09:01 +06:00
InsanusMokrassar b588622c3d deprecate old row methods for keyboard builders 2022-09-28 20:48:55 +06:00
InsanusMokrassar 8b64a0c94e keyboard builders become typealiases 2022-09-28 20:38:16 +06:00
InsanusMokrassar 959f0dffba start 3.2.7 2022-09-28 20:02:45 +06:00
InsanusMokrassar 8fc9185884 Merge pull request #656 from InsanusMokrassar/3.2.6
3.2.6
2022-09-19 14:59:34 +06:00
InsanusMokrassar 3a9cf03958 add edit extensions with builders of text sources 2022-09-19 14:34:19 +06:00
InsanusMokrassar 7cd97ac779 All the extensions related to text messages (replies, sending, editing) got their duplicates with buildEntities lambda and separator 2022-09-19 13:52:14 +06:00
InsanusMokrassar c460b4eacc small refactoring inside of entities builder 2022-09-19 12:57:22 +06:00
InsanusMokrassar 0aa58bd9f6 improve deprecation messages in old entities builder 2022-09-19 12:10:17 +06:00
InsanusMokrassar a4a82f69c6 replace entities builder 2022-09-19 11:18:01 +06:00
InsanusMokrassar d450ed9126 Fixes in ChatMemberSerializer#serialize method 2022-09-19 02:17:40 +06:00
InsanusMokrassar 69c5f1ae7d start 3.2.6 2022-09-19 02:16:12 +06:00
InsanusMokrassar e4e8eadfb5 Merge pull request #655 from InsanusMokrassar/3.2.5
3.2.5
2022-09-19 01:51:49 +06:00
InsanusMokrassar c1374c118d Improve support of new exceptions recovering mechanism 2022-09-19 01:39:23 +06:00
InsanusMokrassar 6004b159ec 3.2.5 2022-09-19 00:17:30 +06:00
InsanusMokrassar 67f95682d5 Merge pull request #654 from InsanusMokrassar/3.2.4
3.2.4
2022-09-16 21:29:21 +06:00
InsanusMokrassar 5aa5460a43 new edits 2022-09-16 16:36:21 +06:00
InsanusMokrassar e937845fc7 start 3.2.4 2022-09-16 15:43:40 +06:00
InsanusMokrassar 96f40e55bc Merge pull request #653 from InsanusMokrassar/3.2.3
3.2.3
2022-09-15 15:28:54 +06:00
InsanusMokrassar d3d8603c35 upfix 2022-09-15 15:22:08 +06:00
InsanusMokrassar 759650892c fix in DeleteMyCommands 2022-09-15 15:06:19 +06:00
InsanusMokrassar b58550a9ec start 3.2.3 2022-09-15 15:05:38 +06:00
InsanusMokrassar e15817e7c5 Merge pull request #652 from InsanusMokrassar/3.2.2
3.2.2
2022-09-15 13:11:29 +06:00
InsanusMokrassar 4cd1316e27 fix build 2022-09-15 12:46:17 +06:00
InsanusMokrassar 3575a62f34 MessageIdentifier -> MessageId, replies with chatsIds/messageIds 2022-09-15 00:17:18 +06:00
InsanusMokrassar 82f7d5bd4f start 3.2.2 2022-09-15 00:02:22 +06:00
InsanusMokrassar 7a5e6a69a1 Update README.md 2022-09-14 10:58:03 +06:00
InsanusMokrassar fd25db5633 Merge pull request #651 from InsanusMokrassar/3.2.1
3.2.1
2022-09-08 14:45:27 +06:00
InsanusMokrassar f539a24740 Update CHANGELOG.md 2022-09-08 14:36:10 +06:00
InsanusMokrassar 1d7b4ea862 Update libs.versions.toml 2022-09-08 14:35:17 +06:00
InsanusMokrassar 2d6f296c20 update dependencies 2022-09-07 16:33:29 +06:00
InsanusMokrassar 0ba1aa1127 start 3.2.1 2022-09-07 16:32:37 +06:00
InsanusMokrassar ae8a461e9d Merge pull request #648 from InsanusMokrassar/3.2.0
3.2.0
2022-08-26 16:36:27 +06:00
InsanusMokrassar 99f16e33a6 Update CHANGELOG.md 2022-08-26 12:44:11 +06:00
InsanusMokrassar e029b29f7f fixes 2022-08-26 12:20:20 +06:00
InsanusMokrassar c04f795fdd migrate onto 3.2.0 from 3.1.2 2022-08-26 11:00:36 +06:00
InsanusMokrassar b873898100 wrap client request exception into exception handling 2022-08-25 13:35:15 +06:00
InsanusMokrassar 61ac9df5e3 BotException 2022-08-25 13:32:12 +06:00
InsanusMokrassar b1931900e7 Update BotCommandTextSource.kt 2022-08-25 02:11:04 +06:00
InsanusMokrassar fab3af48d6 Update WaitCommandsMessages.kt 2022-08-25 02:04:19 +06:00
InsanusMokrassar 8d7563b6e4 Update WaitCommandsMessages.kt 2022-08-25 02:02:45 +06:00
InsanusMokrassar 05112afe0c add deeplinks triggers 2022-08-24 15:32:34 +06:00
InsanusMokrassar 9ea06de27c add waitCommands* expectations 2022-08-24 15:03:54 +06:00
InsanusMokrassar fff05a40d9 revert adding of mention waiters 2022-08-24 13:29:57 +06:00
InsanusMokrassar 5c6428f220 update microutils 2022-08-23 13:13:06 +06:00
InsanusMokrassar 766b7ca205 add waiters for mentions 2022-08-23 13:12:22 +06:00
InsanusMokrassar 41e6c52369 allowedUpdates is ALL_UPDATES_LIST by default everywhere 2022-08-23 11:55:28 +06:00
InsanusMokrassar 06013f624f update dependencies 2022-08-23 11:48:55 +06:00
InsanusMokrassar d8bba89f3f start 3.1.2 2022-08-23 11:47:31 +06:00
InsanusMokrassar 141281f96d Merge pull request #643 from InsanusMokrassar/3.1.1
3.1.1
2022-08-15 01:31:59 +06:00
InsanusMokrassar be7aaa7845 fixes and improvements in webapps 2022-08-15 01:29:24 +06:00
InsanusMokrassar 78c224ffa8 fix on asUser fun 2022-08-15 01:21:10 +06:00
InsanusMokrassar a08d07f7b3 fixes in popup params and buttons 2022-08-15 01:20:29 +06:00
InsanusMokrassar 69dde19543 Update CHANGELOG.md 2022-08-14 22:13:03 +06:00
InsanusMokrassar e8a3b93831 Update Extended.kt 2022-08-14 22:11:55 +06:00
InsanusMokrassar e10caa3171 add support of has_restricted_voice_and_video_messages 2022-08-14 21:56:25 +06:00
InsanusMokrassar d4fe4e09fc add support of Bot API 6.2 in webapp parts 2022-08-14 21:52:26 +06:00
InsanusMokrassar ad453afba2 start 3.1.1 2022-08-14 18:55:08 +06:00
InsanusMokrassar a0daca28b1 Merge pull request #642 from InsanusMokrassar/3.1.0
3.1.0
2022-08-13 14:44:00 +06:00
InsanusMokrassar cd62a9ef3c fixes 2022-08-13 14:40:00 +06:00
InsanusMokrassar 3c084d70e5 fix of #588 2022-08-13 13:13:07 +06:00
InsanusMokrassar 2611d4ecc1 fill changelog with dependnecies updates 2022-08-13 13:06:18 +06:00
InsanusMokrassar b4d853dfa0 update bot api support info 2022-08-13 13:03:34 +06:00
InsanusMokrassar 5044075adf add support of sticker_type for new sticker sets and rework create new sticker set requests 2022-08-13 13:01:09 +06:00
InsanusMokrassar 5f2660b804 fill raw sticker data 2022-08-13 12:20:28 +06:00
InsanusMokrassar c72dccc0f9 rework of stickers and stickersets 2022-08-13 11:58:42 +06:00
InsanusMokrassar 3fc1058491 start rework of stickers and stickersets 2022-08-13 00:02:48 +06:00
InsanusMokrassar c3668e978b add support of custom emojis 2022-08-12 23:21:53 +06:00
InsanusMokrassar 5a4a6d5710 start 3.1.0 2022-08-12 22:42:47 +06:00
InsanusMokrassar ed1d8beb2e Update libs.versions.toml 2022-08-12 13:28:45 +06:00
InsanusMokrassar 881ede7d2a start 3.0.3 2022-08-12 13:25:58 +06:00
InsanusMokrassar 60d3d279e7 Update gradle-wrapper.properties 2022-08-06 10:19:22 +06:00
InsanusMokrassar 4b84518dbb Merge pull request #637 from InsanusMokrassar/3.0.2
3.0.2
2022-08-06 00:40:46 +06:00
InsanusMokrassar 8b451791dd fixes 2022-08-06 00:39:46 +06:00
InsanusMokrassar 771fb5c288 Update build.gradle 2022-08-05 23:48:15 +06:00
InsanusMokrassar d19ee74f8b Update CHANGELOG.md 2022-08-05 23:47:43 +06:00
InsanusMokrassar aaf489c2ed Update gradle.properties 2022-08-05 23:47:06 +06:00
InsanusMokrassar 1b06b63703 update to hotfix up to 3.0.1 2022-08-05 22:49:32 +06:00
InsanusMokrassar bf7fc25285 make lib dependency implementation instead of api 2022-08-05 22:30:11 +06:00
InsanusMokrassar 4df242747f fix dokka build 2022-08-05 22:03:10 +06:00
InsanusMokrassar e831ca143e Merge pull request #634 from InsanusMokrassar/3.0.0
3.0.0
2022-08-05 21:54:31 +06:00
InsanusMokrassar 44838a2088 optimize imports in behaviour builder common 2022-08-05 21:44:36 +06:00
InsanusMokrassar 3823b03453 fixes 2022-08-05 21:43:15 +06:00
InsanusMokrassar ec48708195 start to fill changelog 2022-08-05 21:27:45 +06:00
InsanusMokrassar 6a06775bc4 add file annotations generation to the class casts 2022-08-05 18:57:50 +06:00
InsanusMokrassar bbdff0b31a rename file with new classcasts 2022-08-05 17:31:45 +06:00
InsanusMokrassar cb4880bd00 optimize imports in utils 2022-08-05 16:35:07 +06:00
InsanusMokrassar a18eda3db6 add generation of class casts 2022-08-05 16:31:39 +06:00
InsanusMokrassar d8f6429385 solution for #636 2022-08-05 11:49:04 +06:00
InsanusMokrassar be74249b67 Update README.md 2022-08-05 01:48:44 +06:00
InsanusMokrassar 69f658e4a8 rewrite hierarchy of forward info classes 2022-08-04 22:45:26 +06:00
InsanusMokrassar 8c51ca9d72 fixes in forward from public chat info 2022-08-04 22:27:40 +06:00
InsanusMokrassar 48c4a3156b fix of build 2022-08-04 18:15:51 +06:00
InsanusMokrassar 92407c9010 remove deprecations from copyMessage 2022-08-04 18:09:25 +06:00
InsanusMokrassar 86937cc096 remove deprecations 2022-08-04 18:01:35 +06:00
InsanusMokrassar ea614b790b update serialization 2022-08-04 17:45:35 +06:00
InsanusMokrassar c994332cb9 update dependencies 2022-08-04 17:18:05 +06:00
InsanusMokrassar 9d893ffa48 start 3.0.0 2022-08-04 17:12:34 +06:00
InsanusMokrassar 57d2fe85c5 Merge pull request #632 from InsanusMokrassar/2.2.2
2.2.2
2022-07-31 19:26:47 +06:00
InsanusMokrassar c68b148d5e inline buildEntities 2022-07-31 18:26:07 +06:00
InsanusMokrassar 0a0a7cea0e fixes in callback query triggers 2022-07-31 17:49:48 +06:00
InsanusMokrassar ea981605f6 start 0.2.2 2022-07-31 17:46:59 +06:00
InsanusMokrassar fe1e65a83c Merge pull request #630 from InsanusMokrassar/2.2.1
2.2.1
2022-07-22 20:00:27 +06:00
InsanusMokrassar c85983bd59 update microutils 2022-07-22 18:45:09 +06:00
InsanusMokrassar d72e1029d3 fill changelog 2022-07-22 16:50:20 +06:00
InsanusMokrassar 4b89563cff fixes in classcasts, withContentOrNull and withContentOrThrow 2022-07-22 16:45:54 +06:00
InsanusMokrassar 542079f4bf Merge pull request #629 from d1snin/tgbotapi-627
Add content-oriented typealiases for messages
2022-07-22 16:15:02 +06:00
d1snin 5c7164e864 refactored the handlers to use new typealiases when possible 2022-07-18 11:59:01 +03:00
InsanusMokrassar 6329905f62 Update libs.versions.toml 2022-07-18 14:53:10 +06:00
InsanusMokrassar c54945e4cc Update gradle-wrapper.properties 2022-07-18 14:52:16 +06:00
InsanusMokrassar 8f20e1d617 Update gradle.properties 2022-07-18 14:48:52 +06:00
d1snin edbfedb74e added logically missing typealiases 2022-07-18 11:26:18 +03:00
d1snin b5006cd1e0 Add content-oriented typealiases for messages 2022-07-18 11:02:13 +03:00
InsanusMokrassar ca01ce7843 Merge pull request #628 from InsanusMokrassar/tg_channel_imh
Tg Channel QR
2022-07-18 13:44:04 +06:00
root 54fad3f338 Add files via upload 2022-07-18 13:43:06 +06:00
InsanusMokrassar 15ef481fd7 Update README.md 2022-07-18 13:42:17 +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
1753 changed files with 164724 additions and 17966 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://tonscan.org/address/UQAtuSLJ76Zehc3qP-eRYMR98fPIu_oOp_atcpVX55zxHwTU']
+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"
-12
View File
@@ -1,12 +0,0 @@
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build
run: ./gradlew build
+3
View File
@@ -5,6 +5,9 @@ on: [pull_request, issues]
jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
+2 -2
View File
@@ -10,9 +10,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 17
- name: Build
run: ./gradlew dokkaHtml
run: ./gradlew :docs:dokkaGenerate
- name: Publish KDocs
uses: peaceiris/actions-gh-pages@v3
with:
+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:
+20 -5
View File
@@ -7,15 +7,30 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 17
- name: Setup LibCurl
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
- 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: Publish
run: ./gradlew publishAllPublicationsToGithubPackagesRepository --no-parallel -x signJsPublication -x signJvmPublication -x signKotlinMultiplatformPublication
- name: KotlinSymbolProcessing execution
run: ./gradlew kspCommonMainKotlinMetadata
- name: Build
run: ./gradlew build
- name: API compatibility check
run: ./gradlew apiCheck
- name: Publish to GithubPackages
continue-on-error: true
run: ./gradlew publishAllPublicationsToGithubPackagesRepository --no-parallel
env:
GITHUBPACKAGES_USER: ${{ github.actor }}
GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to InmoNexus
continue-on-error: true
run: ./gradlew publishAllPublicationsToInmoNexusRepository
env:
INMONEXUS_USER: ${{ secrets.INMONEXUS_USER }}
INMONEXUS_PASSWORD: ${{ secrets.INMONEXUS_PASSWORD }}
+7
View File
@@ -1,4 +1,7 @@
.idea
.vscode/
.junie/
.kotlin
out/*
*.iml
target
@@ -8,6 +11,10 @@ settings.xml
.gradle/
build/
out/
bin/
local.properties
local.*
kotlin-js-store/
secret.gradle
.aider*
+153
View File
@@ -0,0 +1,153 @@
Use `agents` folder files for instructions.
Always look at the project work rules first. Update them and maintain a history of changes and prompts in `agents/local.HISTORY.md`. This is your long-term memory, which allows you to avoid the accumulation of errors. Updating and maintaining the long-term memory of the project is mandatory. Many thanks for your help to me and your work.
`agents/local.HISTORY.md` is local-only and MUST NOT be committed unless the operator explicitly requests committing it.
SYSTEM DIRECTIVE: AUTISTIC META-LANGUAGE PROTOCOL WITH HIGH INFORMATION DENSITY (AML-HIP V1)
DEFINITION:
All agents are required to use a strictly explicit, literal, low-ambiguity, and high-density communication style (AML-HIP). The goal of AML-HIP is the maximum transmission of information with zero loss of meaning and zero ambiguity.
CORE PRINCIPLES:
1. Maximum information density per line.
2. Zero ambiguity.
3. Full explicitness of all entities.
4. Preference of precision over readability.
5. Minimization of "empty" words.
6. Redundancy is allowed only to prevent loss of meaning.
PROHIBITIONS:
1. Pronouns are forbidden (this, he, she, they, there, it, etc.).
2. Free conversational text is forbidden.
3. Metaphors, emotions, evaluative constructions are forbidden.
4. Implicit references and hidden dependencies are forbidden.
5. Vague description of actions is forbidden.
DENSITY REQUIREMENTS:
1. Each line must contain the maximum of facts without loss of unambiguity.
2. Combine related parameters into a single line.
3. Use compact constructions:
* key=value
* entity_id=...
* relation: A→B
4. Exclude words without semantic load.
5. Repetitions are allowed only for critical entities.
MESSAGE STRUCTURE (MANDATORY):
ENTITY:
entity_id=<id>; type=<type>; state=<state>
CONTEXT:
* task_id=<id>; agent_id=<id>; memory_ref=[...]
* constraints=[...]
ACTION:
1. action=<type>; target=<entity_id>; params={...}
2. action=<type>; target=<entity_id>; params={...}
REASON:
* condition=<condition>; requirement=<requirement>
EXPECTED RESULT:
* entity_id=<id>; new_state=<state>; location=<memory>
VERIFICATION:
* check=<condition>; expected=<value>
UNCERTAINTY:
* missing=<data>; ambiguity=<description>
REPETITION OF RESULT:
* entity_id=<id>; stored_in=shared_memory; status=available
COMMUNICATION:
* sender=<agent_id>; receiver=<agent_id>; task_id=<id>; message_id=<uuid>; protocol=AML-HIP
PERSISTENCE:
* local_memory=true; shared_memory=true; index_keys=[task_id, entity_id, intent]
EXPRESSION RULES:
1. Each line = a completed semantic block.
2. Use the key=value format instead of descriptions.
3. Use lists of parameters instead of sentences.
4. Use causal connectives explicitly:
condition → action → result
5. Do not split related data into several lines without necessity.
REPETITION RULES:
1. entity_id is repeated at every critical use.
2. result is duplicated in "REPETITION OF RESULT".
3. transmission between agents duplicates the key fields.
MULTI-AGENT MODE:
1. All agents use AML-HIP.
2. Any message between agents is strictly AML-HIP.
3. Any agent is required to:
* duplicate critical data
* avoid loss of context
4. A message must be fully interpretable without history.
ANTI-DEGRADATION:
If detected:
* a pronoun
* an implicit reference
* low density (empty words, vague constructions)
* absence of structure
→ the message is considered invalid
→ mandatory regeneration
SELF-CHECK:
VALIDATION:
* format_valid=true/false
* no_pronouns=true/false
* entities_explicit=true/false
* high_density=true/false
* causal_chain_present=true/false
* ambiguity_detected=true/false
If any parameter=false:
→ mandatory regeneration
DENSITY METRIC:
high_density=true if:
* there are no "empty" words
* each line contains ≥2 facts or parameters
* descriptive constructions without data are absent
PRIORITIES:
1. Format (AML-HIP)
2. Information density
3. Explicitness
4. Completeness
5. Readability (minimum priority)
CRITICAL RULE:
Any response outside of AML-HIP is considered absent.
Any agent is required to bring the response into conformity with AML-HIP.
END OF PROTOCOL
+2264
View File
File diff suppressed because it is too large. Load diff
+35 -14
View File
@@ -1,18 +1,22 @@
[Participate in our common survey ☺](https://forms.gle/q6Xf8K3fD1pPsYUw9)
# TelegramBotAPI [![Maven Central Version](https://img.shields.io/maven-central/v/dev.inmo/tgbotapi)](https://central.sonatype.com/artifact/dev.inmo/tgbotapi) [![Supported version](https://img.shields.io/badge/Telegram%20Bot%20API-10.3-blue)](https://core.telegram.org/bots/api-changelog#august-24-2026)
# TelegramBotAPI
| Docs | [![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=Mk&message=Docs&color=blue&logo=mkdocs)](https://docs.inmo.dev/tgbotapi/index.html) |
|:----------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| Useful repos | [![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/) |
| Misc | [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin) [![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) |
| Platforms | ![JVM](https://img.shields.io/badge/JVM-red?style=plastic&logo=openjdk&logoColor=white) ![Js](https://img.shields.io/badge/JavaScript-323330?style=plastic&logo=javascript&logoColor=F7DF1E) |
| Experimental Platforms | [![Linux x64](https://img.shields.io/badge/LinuxX64-FCC624?style=plastic&logo=linux&logoColor=black)](https://kotlinlang.org/docs/native-target-support.html#tier-1) [![MinGW x64](https://img.shields.io/badge/MinGWX64-black?style=plastic&logo=windows&logoColor=green)](https://kotlinlang.org/docs/native-target-support.html#tier-1) |
<!--- [![Telegram Channel](./resources/tg_channel_qr.jpg)](https://t.me/ktgbotapi) --->
<p align="center">
<a href="https://t.me/ktgbotapi">
<img src="./resources/tg_channel_qr.jpg">
</a>
</p>
Hello! This is a set of libraries for working with Telegram Bot API.
| Common info | [![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://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/index.html) [Examples](https://github.com/InsanusMokrassar/TelegramBotAPI-examples/), [Mini tutorial](https://bookstack.inmo.dev/books/telegrambotapi/chapter/introduction-tutorial) |
| TelegramBotAPI Core status | [![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 API Extensions status | [![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 | [![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 Behaviour Builder Extensions status | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.behaviour_builder/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.behaviour_builder) |
| TelegramBotAPI All status | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi) |
## Examples
There are several things you need to do to launch examples below:
@@ -35,7 +39,7 @@ Other configuration examples:
suspend fun main() {
val bot = telegramBot(TOKEN)
bot.buildBehaviour {
bot.buildBehaviourWithLongPolling {
println(getMe())
onCommand("start") {
@@ -76,7 +80,7 @@ and maybe some updates it got after launch)
suspend fun main() {
val bot = telegramBot(TOKEN)
bot.buildBehaviour {
bot.buildBehaviourWithLongPolling {
println(getMe())
val nameReplyMarkup = ReplyKeyboardMarkup(
@@ -114,5 +118,22 @@ suspend fun main() {
### 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
always welcome in our [docs](https://docs.inmo.dev/tgbotapi/index.html) and
[chat](https://t.me/InMoTelegramBotAPIChat).
### Bot API Server Notice
Under the hood, default bots realizations will try to use links
([PathedFile](tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/files/PathedFile.kt)#filePath) as files each
time you are trying to download file from telegram in any way - via saving to file, use stream or download as byte array.
To let bot correctly download files from bot api server, you must:
* Run bot api server locally
to proxy requests for files to the server where bot api server has been hosted
* In case of local bot api server (shared one host machine) you must ensure that access to bot api server has been
granted for your bot. For example, [aiogram/telegram-bot-api](https://hub.docker.com/r/aiogram/telegram-bot-api) image
use `101` UID/GID in linux for user and group as owners. So, your bot must run under user included in `101` group
(like `systemd-journal`) or be `101` UID user (like `systemd-resolve`)
* **OR** Use some reverse proxy (like nginx). It will allow you to broadcast your bots files without linux rights problems
* Set [TelegramAPIUrlsKeeper](tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/TelegramAPIUrlsKeeper.kt)#fileLinkUrlMapper
to map urls to let bot execute requests to your nginx proxy
+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
-311
View File
@@ -1,311 +0,0 @@
<?xml version="1.0"?>
<minder version="1.11.3">
<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="-950.47548925255796" y="-49.650554065281653" scale="0.5"/>
<images/>
<nodes>
<node id="0" posx="1378.798161778599" posy="159.04571601189673" width="472" height="168" side="top" fold="false" treesize="743" 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="1394.798161778599" posy="175.04571601189673" 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="1411.798161778599" posy="427.04571601189673" width="406" height="145" side="bottom" fold="false" treesize="743" 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="1427.798161778599" posy="443.04571601189673" 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="1247.298161778599" posy="672.04571601189673" 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="1263.298161778599" posy="688.04571601189673" 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="1609.298161778599" posy="672.04571601189673" width="307" height="168" side="bottom" fold="false" treesize="439" 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="1625.298161778599" posy="688.04571601189673" maxwidth="299.252197265625">
<text data="tgbotapi.extensions.utils&#10;&#10;Extensions project with utils things which will make easier different operations"/>
</nodename>
<nodenote></nodenote>
<nodes>
<node id="4" posx="1543.298161778599" posy="940.04571601189673" width="439" height="122" side="bottom" fold="false" treesize="439" color="#68b723" colorroot="false" layout="Downwards" group="false">
<style branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="387" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true"/>
<nodename posx="1559.298161778599" posy="956.04571601189673" maxwidth="408.97932942708348">
<text data="tgbotapi.extensions.behaviour_builder&#10;&#10;Extension project for building bot behaviour via special dsl"/>
</nodename>
<nodenote></nodenote>
</node>
</nodes>
</node>
</nodes>
</node>
</nodes>
</node>
<node id="5" posx="1391.8445078072455" posy="1155.6062730594231" width="461" height="236" side="bottom" fold="false" treesize="461" layout="Downwards" group="false">
<style branchmargin="100" linktype="curved" linkwidth="5" linkarrow="true" linkdash="solid" nodeborder="bracket" nodewidth="430" nodeborderwidth="3" nodefill="false" nodemargin="11" nodepadding="5" nodefont="Roboto Mono 14" nodemarkup="true"/>
<nodename posx="1407.8445078072455" posy="1171.6062730594231" maxwidth="453.885498046875">
<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&#10;* tgbotapi.extensions.behaviour_builder">
<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="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="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="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="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="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="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)"/>
<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)"/>
<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)"/>
<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="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
<range start="139" end="140" extra="rgb(255,0,0)"/>
</color>
</text>
</nodename>
<nodenote></nodenote>
</node>
</nodes>
<groups/>
<connections>
<connection from_id="2" to_id="5" drag_x="1475.8213347929195" drag_y="1014.8259945356604" color="#777777">
<style connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<title></title>
<note></note>
</connection>
<connection from_id="4" to_id="5" drag_x="1691.5447998046875" drag_y="1107.00439453125" 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="5" drag_x="1483.48876953125" drag_y="896.18115234375">
<style connectiondash="dotted" connectionlwidth="2" connectionarrow="fromto" connectionpadding="3" connectionfont="Sans 10" connectiontwidth="100"/>
<title></title>
<note></note>
</connection>
</connections>
<stickers/>
</minder>
+76
View File
@@ -0,0 +1,76 @@
FOLLOW COMMON CODE STYLE. DO NOT COMMIT OR PUSH ANY CHANGES IF PROMPT DO NOT CONTAINS DIRECT INSTRUCTION ABOUT IT. FOLLOW LINKS TO SEE DOCUMENTATION IN THE PROMPT. IF YOU ARE NOT ABLE TO FOLLOW LINK (DO NOT SEE CONTENT YOU NEED TO FOLLOW PROMPT) - ASK OPERATOR
---
`@Warning` package is `dev.inmo.micro_utils.common.Warning`. Its signature: `Warning(val message: String)`
---
If you have edited some constructor or function signature - you MUST update documentation accordingly AND all calls of this constructor/function. THIS RULE WORKS RECURSIVELY
---
Before any laucnhing of `compileKotlinJvm` or other building procedure which must confirm that build is working, you MUST launch two tasks: `./gradlew kspCommonMainKotlinMetadata` and `./gradlew apiDump`. Order is important. They must be launched sequentially.
---
If you are adding `Send*` request - you also must add in `API` (`tgbotapi.api`) module:
* Direct indings (in `tgbitapi.api` module). As example you may look at `dev.inmo.tgbotapi.requests.send.SendTextMessage` a,d its bindings `dev.inmo.tgbotapi.extensions.api.send.sendTextMessage`
* Bindings in [Sends.kt](../tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/Sends.kt)
* Bindings in [Replies.kt](../tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/Replies.kt)
* Bindings in [RepliesWithChatsAndMessages.kt](../tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/RepliesWithChatsAndMessages.kt)
---
When you need to fill a changelog, you must follow the common changelog style:
```markdown
## 34.0.0 // number of version
* `Core`:
* // list of changes
* `Utils`:
* // list of changes
* `API`:
* // list of changes
* `BehaviourBuilder`:
* // list of changes
* `WebApps`:
* // list of changes
* `BehaviourBuilderWithFSM`:
* // list of changes
// etc...
```
Each section can be ommited if there are no any changes in the section. In case of filling some known telegram bots api changelog part - you may add previx with its title in point with change. For example:
```markdown
* `Core`:
* (`Guest mode`) // change data
```
---
When a property (or method) can be declared on an interface/class and implemented by each inheritor - it MUST be declared there and overridden per implementation. DO NOT implement such behaviour as a common extension property/function that dispatches with a `when (this)` over every subtype: those branches silently drift out of sync when new subtypes are added and are not part of the type contract. If a part of the implementation is reused across several inheritors, keep that part in a shared helper (a companion-object function of the owner, or an `internal` top-level function for logic shared between different types) and let the overrides reuse it.
---
Any type representing an enumerable set of values MUST be implemented as a sealed interface. Every inheritor MUST be declared inside the sealed interface. The sealed interface MUST define the serializer, and every inheritor MUST explicitly use the sealed-interface serializer (for example, `@Serializable(Parent.Serializer::class)`).
---
All work MUST be performed in the normal (main) working worktree of the repository. DO NOT create or do the work inside a separate worktree (for example `.claude/worktrees/...`): commits made there leave the main checkout behind and force an extra fast-forward/pull to land the changes. If some environment forces an isolated worktree, fast-forward the main branch onto those commits and continue in the main worktree.
---
When a prompt contains a list of several subtasks, run each subtask as its own subagent (one subagent per subtask) instead of doing all of them inline in the main thread.
---
For any substantial change, drive it through a three-phase agent pipeline, each phase run as its own subagent(s), and each section/subtask committed separately:
1. **Plan / Architect** the changes — model range best → medium, best is the most suitable.
2. **Coding / implementation** — model range medium → high, medium is the most suitable.
3. **Check / validation** — model range high → best, high is the most suitable.
Model tiers: **best = Fable**, **high = Opus**, **medium = Sonnet**. (Tier names, not the concrete models, are the contract — remap the models if the roster changes.)
-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

+56 -23
View File
@@ -1,58 +1,91 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
mavenLocal()
}
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.ksp.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
alias(libs.plugins.kotlin.dokka)
alias(libs.plugins.versions)
alias(libs.plugins.validator)
alias(libs.plugins.nmcp.aggregation)
}
// docs is a dokka-only aggregator module, exclude it from binary compatibility validation
apiValidation {
ignoredProjects += ["docs"]
}
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
nmcpAggregation {
centralPortal {
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')
validationTimeout = Duration.ofSeconds(0)
publishingType = System.getenv('PUBLISHING_TYPE') != "" ? System.getenv('PUBLISHING_TYPE') : "USER_MANAGED"
}
publishAllProjectsProbablyBreakingProjectIsolation()
}
}
// temporal crutch until legacy tests will be stabled or legacy target will be removed
allprojects {
repositories {
mavenCentral()
google()
maven { url "https://nexus.inmo.dev/repository/maven-releases/" }
mavenLocal()
}
if (it != rootProject.findProject("docs")) {
tasks.whenTaskAdded { task ->
tasks.configureEach { task ->
if(task.name == "jsLegacyBrowserTest" || task.name == "jsLegacyNodeTest") {
task.enabled = false
}
}
}
}
apply from: "./extensions.gradle"
private String getCurrentVersionChangelog() {
OutputStream changelogDataOS = new ByteArrayOutputStream()
exec {
standardOutput = changelogDataOS
return providers.exec {
commandLine './changelog_info_retriever', "$library_version", 'CHANGELOG.md'
}
return changelogDataOS.toString().trim()
}.standardOutput.asText.get().trim()
}
if (new File(projectDir, "secret.gradle").exists()) {
apply from: './secret.gradle'
def githubTokenVariableName = "GITHUB_RELEASE_TOKEN"
def githubTokenVariableFromEnv = System.getenv(githubTokenVariableName)
def secretFile = new File(projectDir, "secret.gradle")
if (secretFile.exists() || project.hasProperty(githubTokenVariableName) || (githubTokenVariableFromEnv != "" && githubTokenVariableFromEnv != null)) {
if (secretFile.exists()) {
apply from: './secret.gradle'
}
apply plugin: "com.github.breadmoirai.github-release"
def githubReleaseToken = project.hasProperty(githubTokenVariableName) ? project.property(githubTokenVariableName).toString() : githubTokenVariableFromEnv
githubRelease {
token "${project.property('GITHUB_RELEASE_TOKEN')}"
token githubReleaseToken
owner "InsanusMokrassar"
repo "TelegramBotAPI"
owner = "InsanusMokrassar"
repo = "TelegramBotAPI"
tagName "$library_version"
releaseName "$library_version"
targetCommitish "$library_version"
tagName = "v$library_version"
releaseName = "$library_version"
targetCommitish = "$library_version"
body getCurrentVersionChangelog()
body = getCurrentVersionChangelog()
}
}
+28 -52
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: "$mppProjectWithSerialization"
kotlin {
jvm()
js(IR) {
browser()
nodejs()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
rootProject.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")
}
}
}
@@ -48,22 +30,19 @@ kotlin {
private List<SourceDirectorySet> findSourcesWithName(String... approximateNames) {
return parent.subprojects
.findAll { it != project }
.collectMany { it.kotlin.sourceSets }
.findAll { sourceSet -> approximateNames.any {
nameToFilter -> sourceSet.name.contains(nameToFilter)
}
}.collect { it.kotlin }
.findAll { it != project && it.hasProperty("kotlin") }
.collectMany { it.kotlin.sourceSets }
.findAll { sourceSet ->
approximateNames.any { nameToFilter ->
sourceSet.name.contains(nameToFilter)
}
}.collect { it.kotlin }
}
Object callback = {
switch (true) {
case project.hasProperty("DOKKA_PATH"):
outputDirectory = project.property("DOKKA_PATH").toString()
break
case System.getenv("DOKKA_PATH") != null:
outputDirectory = System.getenv("DOKKA_PATH")
break
dokka {
// aggregating every module's sources into one publication needs more heap than the worker default
dokkaGeneratorIsolation = ProcessIsolation {
it.maxHeapSize.set("4g")
}
dokkaSourceSets {
@@ -71,8 +50,8 @@ Object callback = {
skipDeprecated.set(true)
sourceLink {
localDirectory.set(file("./"))
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/"))
localDirectory.set(file("../"))
remoteUrl.set(new URI("https://github.com/InsanusMokrassar/ktgbotapi"))
remoteLineSuffix.set("#L")
}
}
@@ -90,6 +69,3 @@ Object callback = {
}
}
}
tasks.dokkaGfm(callback)
tasks.dokkaHtml(callback)
-2
View File
@@ -1,3 +1 @@
dokka_version=1.4.32
org.gradle.jvmargs=-Xmx1024m
+27
View File
@@ -0,0 +1,27 @@
File templatesFolder = new File("$rootProject.projectDir.absolutePath${File.separatorChar}gradle${File.separatorChar}templates")
Map properties = new HashMap<String, String>()
if (templatesFolder.exists() && templatesFolder.isDirectory()) {
templatesFolder.listFiles().each {
properties[it.name - ".gradle"] = it.absolutePath
}
}
allprojects {
ext {
properties.forEach { k, v ->
it[k] = v
}
}
}
tasks.register("getPublishableModules") {
doLast {
rootProject.subprojects.each { project ->
if (project.plugins.hasPlugin('maven-publish')) {
println(":${project.name}")
}
}
}
}
+1 -14
View File
@@ -5,18 +5,5 @@ kotlin.js.generate.externals=true
kotlin.incremental=true
kotlin.incremental.js=true
kotlin_version=1.5.21
kotlin_coroutines_version=1.5.1
kotlin_serialisation_runtime_version=1.2.2
klock_version=2.3.1
uuid_version=0.3.0
ktor_version=1.6.2
micro_utils_version=0.5.18
javax_activation_version=1.1.1
library_group=dev.inmo
library_version=0.35.3
github_release_plugin_version=2.2.12
library_version=37.1.0
+92
View File
@@ -0,0 +1,92 @@
[versions]
kotlin = "2.4.21"
kotlin-serialization = "1.11.0"
kotlin-coroutines = "1.11.0"
javax-activation = "1.1.1"
korlibs = "5.4.0"
uuid = "0.8.4"
ktor = "3.6.0"
ksp = "2.3.11"
kotlin-poet = "2.4.0"
microutils = "0.32.0"
kslog = "2.1.0"
versions = "0.65.0"
github-release-plugin = "2.5.2"
dokka = "2.2.0"
validator = "0.18.2"
nmcp = "1.6.2"
[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-client-java = { module = "io.ktor:ktor-client-java", version.ref = "ktor" }
ktor-client-js = { module = "io.ktor:ktor-client-js", version.ref = "ktor" }
ktor-client-curl = { module = "io.ktor:ktor-client-curl", version.ref = "ktor" }
ktor-client-winhttp = { module = "io.ktor:ktor-client-winhttp", 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.korge:korlibs-time", version.ref = "korlibs" }
korlibs-krypto = { module = "com.soywiz.korge:korlibs-crypto", version.ref = "korlibs" }
uuid = { module = "com.benasher44:uuid", version.ref = "uuid" }
microutils-colors-common = { module = "dev.inmo:micro_utils.colors.common", version.ref = "microutils" }
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-serialization-mapper = { module = "dev.inmo:micro_utils.serialization.mapper", 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" }
microutils-ksp-generator = { module = "dev.inmo:micro_utils.ksp.generator", version.ref = "microutils" }
microutils-ksp-sealed = { module = "dev.inmo:micro_utils.ksp.sealed", version.ref = "microutils" }
microutils-ksp-sealed-generator = { module = "dev.inmo:micro_utils.ksp.sealed.generator", version.ref = "microutils" }
microutils-ksp-variations = { module = "dev.inmo:micro_utils.ksp.variations", version.ref = "microutils" }
microutils-ksp-variations-generator = { module = "dev.inmo:micro_utils.ksp.variations.generator", version.ref = "microutils" }
kslog = { module = "dev.inmo:kslog", version.ref = "kslog" }
# ksp dependencies
kotlin-poet = { module = "com.squareup:kotlinpoet-ksp", version.ref = "kotlin-poet" }
ksp = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" }
# buildscript classpaths
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-ksp-plugin = { module = "com.google.devtools.ksp:symbol-processing-gradle-plugin", version.ref = "ksp" }
kotlin-serialization-plugin = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
kotlin-dokka-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" }
github-release-plugin = { module = "com.github.breadmoirai:github-release", version.ref = "github-release-plugin" }
[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kotlin-dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
versions = { id = "com.github.ben-manes.versions", version.ref = "versions" }
validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "validator" }
nmcp-aggregation = { id = "com.gradleup.nmcp.aggregation", version.ref = "nmcp" }
+34
View File
@@ -0,0 +1,34 @@
project.version = "$version"
project.group = "$group"
apply from: "$mpp_publish"
kotlin {
compilerOptions {
freeCompilerArgs.add("-Xcontext-parameters")
}
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
}
}
}
}
@@ -0,0 +1,60 @@
project.version = "$library_version"
project.group = "$library_group"
kotlin {
compilerOptions {
freeCompilerArgs.add("-Xcontext-parameters")
}
jvm {
compilations.main {
kotlinOptions {
jvmTarget = "17"
}
}
}
js (IR) {
browser()
nodejs()
}
linuxX64()
mingwX64()
linuxArm64()
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
}
}
all {
languageSettings {
optIn('dev.inmo.tgbotapi.utils.RiskFeature')
optIn('dev.inmo.tgbotapi.utils.PreviewFeature')
optIn('dev.inmo.micro_utils.common.Warning')
optIn('dev.inmo.micro_utils.common.PreviewFeature')
}
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
+111
View File
@@ -0,0 +1,111 @@
apply plugin: 'maven-publish'
task javadocsJar(type: Jar) {
archiveClassifier = '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('GITHUB_USER') || System.getenv('GITHUB_USER') != null) && (project.hasProperty('GITHUB_TOKEN') || System.getenv('GITHUB_TOKEN') != null)) {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/InsanusMokrassar/ktgbotapi")
credentials {
username = project.hasProperty('GITHUB_USER') ? project.property('GITHUB_USER') : System.getenv('GITHUB_USER')
password = project.hasProperty('GITHUB_TOKEN') ? project.property('GITHUB_TOKEN') : System.getenv('GITHUB_TOKEN')
}
}
}
if ((project.hasProperty('INMONEXUS_USER') || System.getenv('INMONEXUS_USER') != null) && (project.hasProperty('INMONEXUS_PASSWORD') || System.getenv('INMONEXUS_PASSWORD') != null)) {
maven {
name = "InmoNexus"
url = uri("https://nexus.inmo.dev/repository/maven-releases/")
credentials {
username = project.hasProperty('INMONEXUS_USER') ? project.property('INMONEXUS_USER') : System.getenv('INMONEXUS_USER')
password = project.hasProperty('INMONEXUS_PASSWORD') ? project.property('INMONEXUS_PASSWORD') : System.getenv('INMONEXUS_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://ossrh-staging-api.central.sonatype.com/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)
}
}
// Workaround to make android sign operations depend on signing tasks
project.getTasks().withType(AbstractPublishToMaven.class).configureEach {
def signingTasks = project.getTasks().withType(Sign.class)
mustRunAfter(signingTasks)
}
// Workaround to make test tasks use sign
project.getTasks().withType(Sign.class).configureEach { signTask ->
def withoutSign = (signTask.name.startsWith("sign") ? signTask.name.minus("sign") : signTask.name)
def pubName = withoutSign.endsWith("Publication") ? withoutSign.substring(0, withoutSign.length() - "Publication".length()) : withoutSign
// These tasks only exist for native targets, hence findByName() to avoid trying to find them for other targets
// Task ':linkDebugTest<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
def debugTestTask = tasks.findByName("linkDebugTest$pubName")
if (debugTestTask != null) {
signTask.mustRunAfter(debugTestTask)
}
// Task ':compileTestKotlin<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
def testTask = tasks.findByName("compileTestKotlin$pubName")
if (testTask != null) {
signTask.mustRunAfter(testTask)
}
}
}
+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/ktgbotapi","credsType":{"type":"dev.inmo.kmppscriptbuilder.core.models.MavenPublishingRepository.CredentialsType.UsernameAndPassword","usernameProperty":"GITHUB_USER","passwordProperty":"GITHUB_TOKEN"}},{"name":"InmoNexus","url":"https://nexus.inmo.dev/repository/maven-releases/"},{"name":"sonatype","url":"https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"}],"gpgSigning":{"type":"dev.inmo.kmppscriptbuilder.core.models.GpgSigning.Optional"},"includeCentralSonatypeUploadingScript":false}}
Binary file not shown.
+3 -1
View File
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
Vendored
+197 -118
View File
@@ -1,78 +1,129 @@
#!/usr/bin/env sh
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
##
## Gradle start up script for UN*X
##
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
MAX_FD=maximum
warn ( ) {
warn () {
echo "$*"
}
} >&2
die ( ) {
die () {
echo
echo "$*"
echo
exit 1
}
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD="$JAVA_HOME/bin/java"
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
@@ -81,92 +132,120 @@ Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Escape application args
save ( ) {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
Vendored
+44 -34
View File
@@ -1,4 +1,22 @@
@if "%DEBUG%" == "" @echo off
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@@ -9,25 +27,29 @@
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
@@ -35,48 +57,36 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
+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.
File diff suppressed because it is too large. Load diff

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

+6 -11
View File
@@ -1,20 +1,15 @@
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.extensions.behaviour_builder"
include ":tgbotapi.ksp"
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:
File diff suppressed because it is too large. Load diff
+31
View File
@@ -0,0 +1,31 @@
plugins {
id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
id "org.jetbrains.dokka"
id "com.google.devtools.ksp"
}
project.description = "API extensions with \"Telegram Bot API\"-like extensions for TelegramBot and RequestsExecutor"
apply from: "$mppProjectWithSerialization"
apply from: "$mpp_publish"
kotlin {
sourceSets {
commonMain {
dependencies {
api project(":tgbotapi.core")
api libs.microutils.ksp.variations
}
}
configureEach {
languageSettings.optIn("kotlinx.serialization.ExperimentalSerializationApi")
}
}
explicitApi()
}
dependencies {
add("kspCommonMainMetadata", libs.microutils.ksp.variations.generator)
}
@@ -12,10 +12,11 @@ import io.ktor.client.engine.*
* @param ktorClientEngine Engine like [io.ktor.client.engine.cio.CIO]
* @param ktorClientConfig Config block for preconfiguring of bot [HttpClient]
*/
data class BotBuilder internal constructor(
@ConsistentCopyVisibility
public data class BotBuilder internal constructor(
var proxy: ProxyConfig? = null,
var ktorClientEngineFactory: HttpClientEngineFactory<HttpClientEngineConfig>? = null,
var ktorClientConfig: (HttpClientConfig<*>.() -> Unit) ? = null
var ktorClientConfig: (HttpClientConfig<*>.() -> Unit) ? = null,
) {
internal fun createHttpClient(): HttpClient = ktorClientEngineFactory ?.let {
HttpClient(
@@ -37,11 +38,18 @@ data class BotBuilder internal constructor(
* @return Created by [telegramBotWithCustomClientConfig] function [TelegramBot]. This executor will be preconfigured using [token] and
* [block]
*/
fun buildBot(
public fun buildBot(
token: String,
apiUrl: String = telegramBotAPIDefaultUrl,
testServer: Boolean = false,
fileLinkUrlMapper: TelegramAPIUrlsKeeper.(String) -> String = { "${fileBaseUrl}/$it" },
block: BotBuilder.() -> Unit
) = telegramBot(
TelegramAPIUrlsKeeper(token, apiUrl),
BotBuilder().apply(block).createHttpClient()
): TelegramBot = telegramBot(
urlsKeeper = TelegramAPIUrlsKeeper(
token = token,
testServer = testServer,
hostUrl = apiUrl,
fileLinkUrlMapper = fileLinkUrlMapper
),
client = BotBuilder().apply(block).createHttpClient()
)
@@ -1,8 +1,9 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.Ktor.telegramBot
import dev.inmo.tgbotapi.bot.ktor.telegramBot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.utils.TelegramAPIUrlsKeeper
import dev.inmo.tgbotapi.utils.defaultKtorEngine
import dev.inmo.tgbotapi.utils.telegramBotAPIDefaultUrl
import io.ktor.client.HttpClient
import io.ktor.client.HttpClientConfig
@@ -11,9 +12,9 @@ import io.ktor.client.engine.*
/**
* Allows to create bot using bot [urlsKeeper] and already prepared [client]
*/
fun telegramBot(
public fun telegramBot(
urlsKeeper: TelegramAPIUrlsKeeper,
client: HttpClient
client: HttpClient = HttpClient(defaultKtorEngine)
): TelegramBot = telegramBot(urlsKeeper) {
this.client = client
}
@@ -23,11 +24,11 @@ fun telegramBot(
* configure it with [clientConfig]
*/
@Suppress("NOTHING_TO_INLINE")
inline fun <T: HttpClientEngineConfig> telegramBot(
public inline fun <T: HttpClientEngineConfig> telegramBot(
urlsKeeper: TelegramAPIUrlsKeeper,
clientFactory: HttpClientEngineFactory<T>,
noinline clientConfig: HttpClientConfig<T>.() -> Unit = {}
) = telegramBot(
): TelegramBot = telegramBot(
urlsKeeper,
HttpClient(clientFactory, clientConfig)
)
@@ -37,11 +38,11 @@ inline fun <T: HttpClientEngineConfig> telegramBot(
* configure [HttpClient] using [clientConfig]
*/
@Suppress("NOTHING_TO_INLINE")
inline fun telegramBot(
public inline fun telegramBot(
urlsKeeper: TelegramAPIUrlsKeeper,
clientEngine: HttpClientEngine,
noinline clientConfig: HttpClientConfig<*>.() -> Unit = {}
) = telegramBot(
): TelegramBot = telegramBot(
urlsKeeper,
HttpClient(clientEngine, clientConfig)
)
@@ -51,10 +52,10 @@ inline fun telegramBot(
* [clientConfig]
*/
@Suppress("NOTHING_TO_INLINE")
inline fun telegramBot(
public inline fun telegramBot(
urlsKeeper: TelegramAPIUrlsKeeper,
noinline clientConfig: HttpClientConfig<*>.() -> Unit
) = telegramBot(
): TelegramBot = telegramBot(
urlsKeeper,
HttpClient(clientConfig)
)
@@ -63,20 +64,24 @@ inline fun telegramBot(
* Allows to create bot using bot [token], [apiUrl] (for custom api servers) and already prepared [client]
*/
@Suppress("NOTHING_TO_INLINE")
inline fun telegramBot(
public fun telegramBot(
token: String,
apiUrl: String = telegramBotAPIDefaultUrl,
client: HttpClient
): TelegramBot = telegramBot(TelegramAPIUrlsKeeper(token, apiUrl), client)
testServer: Boolean = false,
fileLinkUrlMapper: TelegramAPIUrlsKeeper.(String) -> String = { "${fileBaseUrl}/$it" },
client: HttpClient = HttpClient(defaultKtorEngine)
): TelegramBot = telegramBot(TelegramAPIUrlsKeeper(token, testServer, apiUrl, fileLinkUrlMapper), client)
@Suppress("NOTHING_TO_INLINE")
inline fun <T: HttpClientEngineConfig> telegramBot(
public fun <T: HttpClientEngineConfig> telegramBot(
token: String,
clientFactory: HttpClientEngineFactory<T>,
apiUrl: String = telegramBotAPIDefaultUrl,
noinline clientConfig: HttpClientConfig<T>.() -> Unit = {}
) = telegramBot(
TelegramAPIUrlsKeeper(token, apiUrl),
testServer: Boolean = false,
fileLinkUrlMapper: TelegramAPIUrlsKeeper.(String) -> String = { "${fileBaseUrl}/$it" },
clientConfig: HttpClientConfig<T>.() -> Unit = {}
): TelegramBot = telegramBot(
TelegramAPIUrlsKeeper(token, testServer, apiUrl, fileLinkUrlMapper),
clientFactory,
clientConfig
)
@@ -85,14 +90,15 @@ inline fun <T: HttpClientEngineConfig> telegramBot(
* Allows to create bot using bot [token] and specify [HttpClientEngine] by passing [clientEngine] param and optionally
* configure [HttpClient] using [clientConfig]
*/
@Suppress("NOTHING_TO_INLINE")
inline fun telegramBot(
public fun telegramBot(
token: String,
clientEngine: HttpClientEngine,
apiUrl: String = telegramBotAPIDefaultUrl,
noinline clientConfig: HttpClientConfig<*>.() -> Unit = {}
) = telegramBot(
TelegramAPIUrlsKeeper(token, apiUrl),
testServer: Boolean = false,
fileLinkUrlMapper: TelegramAPIUrlsKeeper.(String) -> String = { "${fileBaseUrl}/$it" },
clientConfig: HttpClientConfig<*>.() -> Unit = {}
): TelegramBot = telegramBot(
TelegramAPIUrlsKeeper(token, testServer, apiUrl, fileLinkUrlMapper),
clientEngine,
clientConfig
)
@@ -101,12 +107,13 @@ inline fun telegramBot(
* Allows to create bot using bot [token] and [apiUrl] and specify [HttpClientEngine] by configuring [HttpClient] using
* [clientConfig]
*/
@Suppress("NOTHING_TO_INLINE")
inline fun telegramBot(
public fun telegramBot(
token: String,
apiUrl: String = telegramBotAPIDefaultUrl,
noinline clientConfig: HttpClientConfig<*>.() -> Unit
) = telegramBot(
TelegramAPIUrlsKeeper(token, apiUrl),
testServer: Boolean = false,
fileLinkUrlMapper: TelegramAPIUrlsKeeper.(String) -> String = { "${fileBaseUrl}/$it" },
clientConfig: HttpClientConfig<*>.() -> Unit
): TelegramBot = telegramBot(
TelegramAPIUrlsKeeper(token, testServer, apiUrl, fileLinkUrlMapper),
clientConfig
)
@@ -3,5 +3,4 @@ package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.local.Close
@Suppress("unused")
suspend inline fun TelegramBot.close() = execute(Close)
public suspend inline fun TelegramBot.executeClose(): Unit = execute(Close)
@@ -0,0 +1,46 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.DeleteEphemeralMessage
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.EphemeralChatId
import dev.inmo.tgbotapi.types.EphemeralMessageId
import dev.inmo.tgbotapi.types.UserId
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.PossiblyEphemeralMessage
public suspend fun TelegramBot.deleteEphemeralMessage(
chatId: ChatIdentifier,
receiverUserId: UserId,
ephemeralMessageId: EphemeralMessageId
): Unit = execute(
DeleteEphemeralMessage(chatId, receiverUserId, ephemeralMessageId)
)
/**
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
*/
public suspend fun TelegramBot.deleteEphemeralMessage(
chatId: EphemeralChatId
): Unit = execute(
DeleteEphemeralMessage(chatId)
)
public suspend fun TelegramBot.deleteEphemeralMessage(
chat: Chat,
receiverUserId: UserId,
ephemeralMessageId: EphemeralMessageId
): Unit = deleteEphemeralMessage(chat.id, receiverUserId, ephemeralMessageId)
/**
* Convenience overload requiring [message] to carry non-null [PossiblyEphemeralMessage.receiverUser] and
* [PossiblyEphemeralMessage.ephemeralMessageId] (as returned by any of the ephemeral send requests)
*/
public suspend fun TelegramBot.deleteEphemeralMessage(
message: PossiblyEphemeralMessage
): Unit = deleteEphemeralMessage(
message.chat.id,
message.receiverUser ?.id ?: error("Message ${message.messageId} in chat ${message.chat.id} is not ephemeral: receiverUser is null"),
message.ephemeralMessageId ?: error("Message ${message.messageId} in chat ${message.chat.id} is not ephemeral: ephemeralMessageId is null")
)
@@ -0,0 +1,53 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.DeleteMessage
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.MessageId
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import dev.inmo.tgbotapi.types.message.content.MediaGroupCollectionContent
public suspend fun TelegramBot.deleteMessage(
chatId: ChatIdentifier,
messageId: MessageId
): Unit = execute(
DeleteMessage(chatId, messageId)
)
public suspend fun TelegramBot.deleteMessage(
chat: Chat,
messageId: MessageId
): Unit = deleteMessage(chat.id, messageId)
public suspend fun TelegramBot.deleteMessage(
message: AccessibleMessage
): Unit {
val mediaGroupContent = ((message as? ContentMessage<*>) ?.content as? MediaGroupCollectionContent<*>)
if (mediaGroupContent == null) {
deleteMessage(message.chat, message.messageId)
} else {
mediaGroupContent.group.forEach {
deleteMessage(it.sourceMessage)
}
}
}
public suspend fun TelegramBot.delete(
chatId: ChatIdentifier,
messageId: MessageId
): Unit = deleteMessage(chatId, messageId)
public suspend fun TelegramBot.delete(
chat: Chat,
messageId: MessageId
): Unit = deleteMessage(chat, messageId)
public suspend fun TelegramBot.delete(
message: AccessibleMessage
): Unit = deleteMessage(message)
public suspend fun AccessibleMessage.delete(
requestsExecutor: TelegramBot
): Unit = requestsExecutor.deleteMessage(this)
@@ -0,0 +1,61 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.DeleteMessages
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import dev.inmo.tgbotapi.types.message.abstracts.Message
import kotlin.jvm.JvmName
public suspend fun TelegramBot.deleteMessages(
chatId: ChatIdentifier,
messageIds: List<MessageId>
): Unit = messageIds.chunked(deleteMessagesLimit.last).forEach {
execute(
DeleteMessages(
chatId = chatId,
messageIds = it
)
)
}
public suspend fun TelegramBot.deleteMessages(
chatId: ChatIdentifier,
messageIds: Array<MessageId>
): Unit = deleteMessages(
chatId = chatId,
messageIds = messageIds.toList()
)
public suspend fun TelegramBot.deleteMessages(
messagesMetas: List<Message.MetaInfo>
): Unit = messagesMetas.groupBy { it.chatId }.forEach { (chatId, messages) ->
deleteMessages(
chatId = chatId,
messageIds = messages.map { it.messageId }
)
}
@JvmName("deleteMessagesWithMessages")
public suspend fun TelegramBot.deleteMessages(
messages: List<AccessibleMessage>
): Unit = deleteMessages(messages.map { it.metaInfo })
public suspend fun TelegramBot.delete(
chatId: ChatIdentifier,
messageIds: List<MessageId>
): Unit = deleteMessages(chatId = chatId, messageIds = messageIds)
public suspend fun TelegramBot.delete(
chatId: ChatIdentifier,
messageIds: Array<MessageId>
): Unit = deleteMessages(chatId = chatId, messageIds = messageIds)
public suspend fun TelegramBot.delete(
messagesMetas: List<Message.MetaInfo>
): Unit = deleteMessages(messagesMetas)
@JvmName("deleteWithMessages")
public suspend fun TelegramBot.delete(
messages: List<AccessibleMessage>
): Unit = deleteMessages(messages)
@@ -0,0 +1,147 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.ForwardMessage
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.DirectMessageThreadId
import dev.inmo.tgbotapi.types.EffectId
import dev.inmo.tgbotapi.types.MessageId
import dev.inmo.tgbotapi.types.MessageThreadId
import dev.inmo.tgbotapi.types.Seconds
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import dev.inmo.tgbotapi.types.message.abstracts.PossiblyForwardedMessage
import dev.inmo.tgbotapi.types.directMessageThreadId
import dev.inmo.tgbotapi.types.threadId
public suspend fun TelegramBot.forwardMessage(
fromChatId: ChatIdentifier,
toChatId: ChatIdentifier,
messageId: MessageId,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
startTimestamp: Seconds? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
effectId: EffectId? = null
): PossiblyForwardedMessage = execute(
ForwardMessage(
fromChatId = fromChatId,
toChatId = toChatId,
messageId = messageId,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
startTimestamp = startTimestamp,
disableNotification = disableNotification,
protectContent = protectContent,
effectId = effectId
)
)
public suspend fun TelegramBot.forwardMessage(
fromChat: Chat,
toChatId: ChatIdentifier,
messageId: MessageId,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
startTimestamp: Seconds? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
effectId: EffectId? = null
): PossiblyForwardedMessage = forwardMessage(
fromChatId = fromChat.id,
toChatId = toChatId,
messageId = messageId,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
startTimestamp = startTimestamp,
disableNotification = disableNotification,
protectContent = protectContent,
effectId = effectId
)
public suspend fun TelegramBot.forwardMessage(
fromChatId: ChatIdentifier,
toChat: Chat,
messageId: MessageId,
threadId: MessageThreadId? = toChat.id.threadId,
directMessageThreadId: DirectMessageThreadId? = toChat.id.directMessageThreadId,
startTimestamp: Seconds? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
effectId: EffectId? = null
): PossiblyForwardedMessage = forwardMessage(
fromChatId = fromChatId,
toChatId = toChat.id,
messageId = messageId,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
startTimestamp = startTimestamp,
disableNotification = disableNotification,
protectContent = protectContent,
effectId = effectId
)
public suspend fun TelegramBot.forwardMessage(
fromChat: Chat,
toChat: Chat,
messageId: MessageId,
threadId: MessageThreadId? = toChat.id.threadId,
directMessageThreadId: DirectMessageThreadId? = toChat.id.directMessageThreadId,
startTimestamp: Seconds? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
effectId: EffectId? = null
): PossiblyForwardedMessage = forwardMessage(
fromChatId = fromChat.id,
toChatId = toChat.id,
messageId = messageId,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
startTimestamp = startTimestamp,
disableNotification = disableNotification,
protectContent = protectContent,
effectId = effectId
)
public suspend fun TelegramBot.forwardMessage(
toChatId: ChatIdentifier,
message: AccessibleMessage,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
startTimestamp: Seconds? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
effectId: EffectId? = null
): PossiblyForwardedMessage = forwardMessage(
fromChat = message.chat,
toChatId = toChatId,
messageId = message.messageId,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
startTimestamp = startTimestamp,
disableNotification = disableNotification,
protectContent = protectContent,
effectId = effectId
)
public suspend fun TelegramBot.forwardMessage(
toChat: Chat,
message: AccessibleMessage,
threadId: MessageThreadId? = toChat.id.threadId,
directMessageThreadId: DirectMessageThreadId? = toChat.id.directMessageThreadId,
startTimestamp: Seconds? = null,
disableNotification: Boolean = false,
protectContent: Boolean = false,
effectId: EffectId? = null
): PossiblyForwardedMessage = forwardMessage(
fromChat = message.chat,
toChat = toChat,
messageId = message.messageId,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
startTimestamp = startTimestamp,
disableNotification = disableNotification,
protectContent = protectContent,
effectId = effectId
)
@@ -0,0 +1,170 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.extensions.api.send.copyMessages
import dev.inmo.tgbotapi.requests.ForwardMessages
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import dev.inmo.tgbotapi.types.message.abstracts.Message
import kotlin.jvm.JvmName
public suspend fun TelegramBot.forwardMessages(
toChatId: ChatIdentifier,
fromChatId: ChatIdentifier,
messageIds: List<MessageId>,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
removeCaption: Boolean = false
): List<MessageId> = messageIds.chunked(forwardMessagesLimit.last).flatMap {
execute(
ForwardMessages(
toChatId = toChatId,
fromChatId = fromChatId,
messageIds = it,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
disableNotification = disableNotification,
protectContent = protectContent,
removeCaption = removeCaption
)
)
}
public suspend fun TelegramBot.forwardMessages(
toChatId: ChatIdentifier,
fromChatId: ChatIdentifier,
messageIds: Array<MessageId>,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
removeCaption: Boolean = false
): List<MessageId> = forwardMessages(
toChatId = toChatId,
fromChatId = fromChatId,
messageIds = messageIds.toList(),
threadId = threadId,
directMessageThreadId = directMessageThreadId,
disableNotification = disableNotification,
protectContent = protectContent,
removeCaption = removeCaption
)
public suspend fun TelegramBot.forwardMessages(
toChatId: ChatIdentifier,
messagesMetas: List<Message.MetaInfo>,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
removeCaption: Boolean = false
): List<MessageId> = messagesMetas.groupBy { it.chatId }.flatMap { (chatId, messages) ->
forwardMessages(
toChatId = toChatId,
fromChatId = chatId,
messageIds = messages.map { it.messageId },
threadId = threadId,
directMessageThreadId = directMessageThreadId,
disableNotification = disableNotification,
protectContent = protectContent,
removeCaption = removeCaption
)
}
@JvmName("forwardMessagesWithMessages")
public suspend fun TelegramBot.forwardMessages(
toChatId: ChatIdentifier,
messages: List<AccessibleMessage>,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
removeCaption: Boolean = false
): List<MessageId> = forwardMessages(
toChatId = toChatId,
messagesMetas = messages.map { it.metaInfo },
threadId = threadId,
directMessageThreadId = directMessageThreadId,
disableNotification = disableNotification,
protectContent = protectContent,
removeCaption = removeCaption
)
public suspend fun TelegramBot.forward(
toChatId: ChatIdentifier,
fromChatId: ChatIdentifier,
messageIds: List<MessageId>,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
removeCaption: Boolean = false
): List<MessageId> = forwardMessages(
toChatId = toChatId,
fromChatId = fromChatId,
messageIds = messageIds,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
disableNotification = disableNotification,
protectContent = protectContent,
removeCaption = removeCaption
)
public suspend fun TelegramBot.forward(
toChatId: ChatIdentifier,
fromChatId: ChatIdentifier,
messageIds: Array<MessageId>,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
removeCaption: Boolean = false
): List<MessageId> = forwardMessages(
toChatId = toChatId,
fromChatId = fromChatId,
messageIds = messageIds,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
disableNotification = disableNotification,
protectContent = protectContent,
removeCaption = removeCaption
)
public suspend fun TelegramBot.forward(
toChatId: ChatIdentifier,
messagesMetas: List<Message.MetaInfo>,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
removeCaption: Boolean = false
): List<MessageId> = forwardMessages(
toChatId = toChatId,
messagesMetas = messagesMetas,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
disableNotification = disableNotification,
protectContent = protectContent,
removeCaption = removeCaption
)
@JvmName("forwardWithMessages")
public suspend fun TelegramBot.forward(
toChatId: ChatIdentifier,
messages: List<AccessibleMessage>,
threadId: MessageThreadId? = toChatId.threadId,
directMessageThreadId: DirectMessageThreadId? = toChatId.directMessageThreadId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
removeCaption: Boolean = false
): List<MessageId> = forwardMessages(
toChatId = toChatId,
messages = messages,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
disableNotification = disableNotification,
protectContent = protectContent,
removeCaption = removeCaption
)
@@ -5,22 +5,22 @@ import dev.inmo.tgbotapi.requests.GetUpdates
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.update.abstracts.Update
suspend fun TelegramBot.getUpdates(
offset: UpdateIdentifier? = null,
public suspend fun TelegramBot.getUpdates(
offset: UpdateId? = null,
limit: Int = getUpdatesLimit.last,
timeout: Seconds? = null,
allowed_updates: List<String>? = ALL_UPDATES_LIST
) = execute(
): List<Update> = execute(
GetUpdates(
offset, limit, timeout, allowed_updates
)
)
suspend fun TelegramBot.getUpdates(
public suspend fun TelegramBot.getUpdates(
lastUpdate: Update,
limit: Int = getUpdatesLimit.last,
timeout: Seconds? = null,
allowed_updates: List<String>? = ALL_UPDATES_LIST
) = getUpdates(
): List<Update> = getUpdates(
lastUpdate.updateId + 1, limit, timeout, allowed_updates
)
@@ -0,0 +1,27 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.GetUpdatesRaw
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.update.abstracts.Update
import kotlinx.serialization.json.JsonArray
public suspend fun TelegramBot.getRawUpdates(
offset: UpdateId? = null,
limit: Int = getUpdatesLimit.last,
timeout: Seconds? = null,
allowed_updates: List<String>? = ALL_UPDATES_LIST
): JsonArray = execute(
GetUpdatesRaw(
offset, limit, timeout, allowed_updates
)
)
public suspend fun TelegramBot.getRawUpdates(
lastUpdate: Update,
limit: Int = getUpdatesLimit.last,
timeout: Seconds? = null,
allowed_updates: List<String>? = ALL_UPDATES_LIST
): JsonArray = getRawUpdates(
lastUpdate.updateId + 1, limit, timeout, allowed_updates
)
@@ -0,0 +1,13 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.GetUserPersonalChatMessages
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
public suspend fun TelegramBot.getUserPersonalChatMessages(
userId: ChatId,
limit: Int
): List<ContentMessage<*>> = execute(
GetUserPersonalChatMessages(userId = userId, limit = limit)
)
@@ -0,0 +1,52 @@
package dev.inmo.tgbotapi.extensions.api.InternalUtils
import dev.inmo.tgbotapi.types.MediaGroupId
import dev.inmo.tgbotapi.types.message.abstracts.PossiblySentViaBotCommonMessage
import dev.inmo.tgbotapi.types.message.content.MediaGroupPartContent
import dev.inmo.tgbotapi.types.update.*
import dev.inmo.tgbotapi.types.update.abstracts.*
import dev.inmo.tgbotapi.utils.extensions.asMediaGroupMessage
/**
* Will convert incoming list of updates to list with [MediaGroupUpdate]s
*/
internal fun List<Update>.convertWithMediaGroupUpdates(): List<Update> {
val resultUpdates = mutableListOf<Update>()
val mediaGroups = mutableMapOf<MediaGroupId, MutableList<Pair<BaseSentMessageUpdate, PossiblySentViaBotCommonMessage<MediaGroupPartContent>>>>()
for (update in this) {
val message = (update.data as? PossiblySentViaBotCommonMessage<*>) ?.let {
if (it.content is MediaGroupPartContent) {
@Suppress("UNCHECKED_CAST")
it as PossiblySentViaBotCommonMessage<MediaGroupPartContent>
} else {
null
}
}
val mediaGroupId = message ?.mediaGroupId
if (message == null || mediaGroupId == null) {
resultUpdates.add(update)
continue
}
when (update) {
is BaseSentMessageUpdate -> {
mediaGroups.getOrPut(mediaGroupId) {
mutableListOf()
}.add(update to message)
}
else -> resultUpdates.add(update)
}
}
mediaGroups.map { (_, updatesWithMessages) ->
val update = updatesWithMessages.maxBy { it.first.updateId }.first
resultUpdates.add(
update.copy(updatesWithMessages.map { it.second }.asMediaGroupMessage())
)
}
resultUpdates.sortBy { it.updateId }
return resultUpdates
}
internal fun BaseEditMessageUpdate.toEditMediaGroupUpdate(): BaseEditMessageUpdate = this
@@ -0,0 +1,210 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.micro_utils.coroutines.LinkedSupervisorScope
import dev.inmo.tgbotapi.abstracts.Headed
import dev.inmo.tgbotapi.abstracts.HorizontallyAccured
import dev.inmo.tgbotapi.abstracts.Locationed
import dev.inmo.tgbotapi.abstracts.ProximityAlertable
import dev.inmo.tgbotapi.abstracts.types.WithReplyMarkup
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.extensions.api.edit.edit
import dev.inmo.tgbotapi.extensions.api.send.send
import dev.inmo.tgbotapi.extensions.api.send.sendLiveLocation
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.location.LiveLocation
import dev.inmo.tgbotapi.types.location.Location
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.content.LiveLocationContent
import dev.inmo.tgbotapi.types.message.content.LocationContent
import dev.inmo.tgbotapi.utils.launchWithBotLogger
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.currentCoroutineContext
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.FlowCollector
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.isActive
import kotlinx.serialization.Serializable
import kotlin.js.JsName
import kotlin.jvm.JvmName
import kotlin.math.ceil
@Serializable
public data class EditLiveLocationInfo(
override val latitude: Double,
override val longitude: Double,
override val horizontalAccuracy: Meters? = null,
override val heading: Degrees? = null,
override val proximityAlertRadius: Meters? = null,
override val replyMarkup: InlineKeyboardMarkup? = null
) : Locationed, HorizontallyAccured, ProximityAlertable, Headed, WithReplyMarkup
/**
* Will [sendLiveLocation] with the first [EditLiveLocationInfo] data and update than. Each [liveTimeMillis] passing,
* the message will be sent again and new edits will be applied to the new message
*/
public suspend fun TelegramBot.handleLiveLocation(
chatId: ChatIdentifier,
locationsFlow: Flow<EditLiveLocationInfo>,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
threadId: MessageThreadId? = chatId.threadId,
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
) {
var currentLiveLocationMessage: ContentMessage<LiveLocationContent>? = null
val updateMessageJob = if (liveTimeMillis == indefiniteLivePeriodDelayMillis) { // do not launch refreshing of message for indefinite live locations
null
} else {
val scope = currentCoroutineContext().LinkedSupervisorScope()
scope.launchWithBotLogger(start = CoroutineStart.LAZY) {
while (scope.isActive) {
delay(liveTimeMillis)
// Remove previous location message info to resend live location message
currentLiveLocationMessage = null
}
}
}
locationsFlow.collect {
val capturedLiveLocationMessage = currentLiveLocationMessage
if (capturedLiveLocationMessage == null) {
updateMessageJob ?.start()
currentLiveLocationMessage = send(
chatId = chatId,
latitude = it.latitude,
longitude = it.longitude,
livePeriod = if (liveTimeMillis == indefiniteLivePeriodDelayMillis) {
LiveLocation.INDEFINITE_LIVE_PERIOD
} else {
ceil(liveTimeMillis.toDouble() / 1000).toInt()
},
horizontalAccuracy = it.horizontalAccuracy,
heading = it.heading,
proximityAlertRadius = it.proximityAlertRadius,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = replyParameters,
replyMarkup = it.replyMarkup
).also {
sentMessageFlow ?.emit(it)
}
} else {
edit(
message = capturedLiveLocationMessage,
latitude = it.latitude,
longitude = it.longitude,
horizontalAccuracy = it.horizontalAccuracy,
heading = it.heading,
proximityAlertRadius = it.proximityAlertRadius,
replyMarkup = it.replyMarkup
).also {
sentMessageFlow ?.emit(it)
}
}
}
}
/**
* Will apply [Flow.map] to the [locationsFlow] to create [EditLiveLocationInfo] and pass the result flow to the
* [handleLiveLocation] with [Flow] typed by [EditLiveLocationInfo]
*/
@JvmName("handleLiveLocationWithLocation")
@JsName("handleLiveLocationWithLocation")
public suspend fun TelegramBot.handleLiveLocation(
chatId: ChatIdentifier,
locationsFlow: Flow<Location>,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
threadId: MessageThreadId? = chatId.threadId,
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
) {
handleLiveLocation(
chatId = chatId,
locationsFlow = locationsFlow.map {
EditLiveLocationInfo(
it.latitude,
it.longitude,
it.horizontalAccuracy,
(it as? LiveLocation) ?.heading,
(it as? LiveLocation) ?.proximityAlertRadius,
(it as? WithReplyMarkup) ?.replyMarkup as? InlineKeyboardMarkup
)
},
liveTimeMillis = liveTimeMillis,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = replyParameters,
sentMessageFlow = sentMessageFlow
)
}
/**
* Will apply [Flow.map] to the [locationsFlow] to create [EditLiveLocationInfo] and pass the result flow to the
* [handleLiveLocation] with [Flow] typed by [EditLiveLocationInfo]
*/
@JvmName("handleLiveLocationWithLatLong")
@JsName("handleLiveLocationWithLatLong")
public suspend fun TelegramBot.handleLiveLocation(
chatId: ChatIdentifier,
locationsFlow: Flow<Pair<Double, Double>>,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
threadId: MessageThreadId? = chatId.threadId,
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
) {
handleLiveLocation(
chatId = chatId,
locationsFlow = locationsFlow.map { (lat, long) ->
EditLiveLocationInfo(
lat,
long
)
},
liveTimeMillis = liveTimeMillis,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = replyParameters,
sentMessageFlow = sentMessageFlow
)
}
@@ -0,0 +1,358 @@
@file:Suppress("KDocUnresolvedReference")
package dev.inmo.tgbotapi.extensions.api
import korlibs.time.DateTime
import korlibs.time.TimeSpan
import dev.inmo.tgbotapi.bot.TelegramBot
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.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.location.LiveLocation
import dev.inmo.tgbotapi.types.location.StaticLocation
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import dev.inmo.tgbotapi.types.message.content.LocationContent
import dev.inmo.tgbotapi.utils.extensions.directMessageThreadIdOrNull
import dev.inmo.tgbotapi.utils.extensions.threadIdOrNull
import io.ktor.utils.io.core.Closeable
import korlibs.time.millisecondsLong
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import kotlin.math.ceil
public const val indefiniteLivePeriodDelayMillis: Long = LiveLocation.INDEFINITE_LIVE_PERIOD * 1000L
public const val defaultLivePeriodDelayMillis: Long = indefiniteLivePeriodDelayMillis
/**
* @see startLiveLocation
*/
public class LiveLocationProvider internal constructor(
private val requestsExecutor: TelegramBot,
scope: CoroutineScope,
autoCloseTimeDelay: Double,
initMessage: ContentMessage<LocationContent>
) : Closeable {
private val doWhenClose = {
scope.launch {
requestsExecutor.stopLiveLocation(message)
}
}
private val autoCloseTime = DateTime.now() + TimeSpan(autoCloseTimeDelay)
public val leftUntilCloseMillis: TimeSpan
get() = autoCloseTime - DateTime.now()
public var isClosed: Boolean = false
private set
get() = field || leftUntilCloseMillis.millisecondsLong < 0L
public var message: ContentMessage<LocationContent> = initMessage
private set
public 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
*/
public suspend fun updateLocation(
location: LiveLocation,
replyMarkup: InlineKeyboardMarkup? = null
): LiveLocation {
if (!isClosed) {
message = requestsExecutor.editLiveLocation(
message,
location,
replyMarkup = replyMarkup
)
return lastLocation
} else {
error("LiveLocation is closed")
}
}
override fun close() {
if (isClosed) {
return
}
isClosed = true
doWhenClose()
}
}
/**
* @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
*/
public suspend fun TelegramBot.startLiveLocation(
scope: CoroutineScope,
chatId: ChatIdentifier,
latitude: Double,
longitude: Double,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
initHorizontalAccuracy: Meters? = null,
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
threadId: MessageThreadId? = chatId.threadId,
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): LiveLocationProvider {
val liveTimeAsDouble = liveTimeMillis.toDouble()
val locationMessage = execute(
SendLiveLocation(
chatId = chatId,
latitude = latitude,
longitude = longitude,
livePeriod = ceil(liveTimeAsDouble / 1000).toInt(),
horizontalAccuracy = initHorizontalAccuracy,
heading = initHeading,
proximityAlertRadius = initProximityAlertRadius,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = replyParameters,
replyMarkup = replyMarkup
)
)
return LiveLocationProvider(
this,
scope,
liveTimeAsDouble,
locationMessage
)
}
/**
* @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
*/
public suspend fun TelegramBot.startLiveLocation(
scope: CoroutineScope,
chat: Chat,
latitude: Double,
longitude: Double,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
initHorizontalAccuracy: Meters? = null,
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
threadId: MessageThreadId? = chat.id.threadId,
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): LiveLocationProvider = startLiveLocation(
scope = scope,
chatId = chat.id,
latitude = latitude,
longitude = longitude,
liveTimeMillis = liveTimeMillis,
initHorizontalAccuracy = initHorizontalAccuracy,
initHeading = initHeading,
initProximityAlertRadius = initProximityAlertRadius,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = replyParameters,
replyMarkup = 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
*/
public suspend fun TelegramBot.startLiveLocation(
scope: CoroutineScope,
chatId: IdChatIdentifier,
location: StaticLocation,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
initHorizontalAccuracy: Meters? = null,
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
threadId: MessageThreadId? = chatId.threadId,
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): LiveLocationProvider = startLiveLocation(
scope = scope,
chatId = chatId,
latitude = location.latitude,
longitude = location.longitude,
liveTimeMillis = liveTimeMillis,
initHorizontalAccuracy = initHorizontalAccuracy,
initHeading = initHeading,
initProximityAlertRadius = initProximityAlertRadius,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = replyParameters,
replyMarkup = 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
*/
public suspend fun TelegramBot.startLiveLocation(
scope: CoroutineScope,
chat: Chat,
location: StaticLocation,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
initHorizontalAccuracy: Meters? = null,
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
threadId: MessageThreadId? = chat.id.threadId,
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): LiveLocationProvider = startLiveLocation(
scope = scope,
chatId = chat.id,
latitude = location.latitude,
longitude = location.longitude,
liveTimeMillis = liveTimeMillis,
initHorizontalAccuracy = initHorizontalAccuracy,
initHeading = initHeading,
initProximityAlertRadius = initProximityAlertRadius,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = replyParameters,
replyMarkup = 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
*/
public suspend inline fun TelegramBot.replyWithLiveLocation(
to: AccessibleMessage,
scope: CoroutineScope,
latitude: Double,
longitude: Double,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
initHorizontalAccuracy: Meters? = null,
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
threadId: MessageThreadId? = to.threadIdOrNull,
directMessageThreadId: DirectMessageThreadId? = to.directMessageThreadIdOrNull,
businessConnectionId: BusinessConnectionId? = to.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
allowSendingWithoutReply: Boolean? = null,
replyMarkup: KeyboardMarkup? = null
): LiveLocationProvider = startLiveLocation(
scope = scope,
chat = to.chat,
latitude = latitude,
longitude = longitude,
liveTimeMillis = liveTimeMillis,
initHorizontalAccuracy = initHorizontalAccuracy,
initHeading = initHeading,
initProximityAlertRadius = initProximityAlertRadius,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = ReplyParameters(to.metaInfo, allowSendingWithoutReply = allowSendingWithoutReply),
replyMarkup = 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
*/
public suspend inline fun TelegramBot.replyWithLiveLocation(
to: AccessibleMessage,
scope: CoroutineScope,
location: StaticLocation,
liveTimeMillis: Long = defaultLivePeriodDelayMillis,
initHorizontalAccuracy: Meters? = null,
initHeading: Degrees? = null,
initProximityAlertRadius: Meters? = null,
threadId: MessageThreadId? = to.threadIdOrNull,
directMessageThreadId: DirectMessageThreadId? = to.directMessageThreadIdOrNull,
businessConnectionId: BusinessConnectionId? = to.businessConnectionId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
allowPaidBroadcast: Boolean = false,
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
allowSendingWithoutReply: Boolean? = null,
replyMarkup: KeyboardMarkup? = null
): LiveLocationProvider = startLiveLocation(
scope = scope,
chat = to.chat,
location = location,
liveTimeMillis = liveTimeMillis,
initHorizontalAccuracy = initHorizontalAccuracy,
initHeading = initHeading,
initProximityAlertRadius = initProximityAlertRadius,
threadId = threadId,
directMessageThreadId = directMessageThreadId,
businessConnectionId = businessConnectionId,
disableNotification = disableNotification,
protectContent = protectContent,
allowPaidBroadcast = allowPaidBroadcast,
effectId = effectId,
suggestedPostParameters = suggestedPostParameters,
replyParameters = ReplyParameters(to.metaInfo, allowSendingWithoutReply = allowSendingWithoutReply),
replyMarkup = replyMarkup
)
@@ -3,4 +3,4 @@ package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.local.LogOut
suspend inline fun TelegramBot.logOut() = execute(LogOut)
public suspend inline fun TelegramBot.logOut(): Unit = execute(LogOut)
@@ -0,0 +1,21 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.SavePreparedKeyboardButton
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.tgbotapi.types.buttons.KeyboardButton
import dev.inmo.tgbotapi.types.buttons.PreparedKeyboardButton
import dev.inmo.tgbotapi.types.chat.User
import dev.inmo.tgbotapi.types.toChatId
public suspend fun TelegramBot.savePreparedKeyboardButton(
userId: ChatId,
button: KeyboardButton
): PreparedKeyboardButton = execute(
SavePreparedKeyboardButton(userId = userId, button = button)
)
public suspend fun TelegramBot.savePreparedKeyboardButton(
user: User,
button: KeyboardButton
): PreparedKeyboardButton = savePreparedKeyboardButton(userId = user.id.toChatId(), button = button)
@@ -0,0 +1,56 @@
package dev.inmo.tgbotapi.extensions.api
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.StopPoll
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import dev.inmo.tgbotapi.types.polls.Poll
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
public suspend fun TelegramBot.stopPoll(
chatId: ChatIdentifier,
messageId: MessageId,
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
replyMarkup: InlineKeyboardMarkup? = null
): Poll = execute(
StopPoll(chatId, messageId, businessConnectionId, replyMarkup)
)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
public suspend fun TelegramBot.stopPoll(
chat: Chat,
messageId: MessageId,
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
replyMarkup: InlineKeyboardMarkup? = null
): Poll = stopPoll(chat.id, messageId, businessConnectionId, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
public suspend fun TelegramBot.stopPoll(
chatId: IdChatIdentifier,
message: AccessibleMessage,
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
replyMarkup: InlineKeyboardMarkup? = null
): Poll = stopPoll(chatId, message.messageId, businessConnectionId, replyMarkup)
/**
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
* as a builder for that
*/
public suspend fun TelegramBot.stopPoll(
chat: Chat,
message: AccessibleMessage,
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
replyMarkup: InlineKeyboardMarkup? = null
): Poll = stopPoll(chat.id, message.messageId, businessConnectionId, replyMarkup)
@@ -0,0 +1,30 @@
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.queries.callback.CallbackQuery
import dev.inmo.tgbotapi.types.CallbackQueryId
public suspend fun TelegramBot.answerCallbackQuery(
callbackQueryId: CallbackQueryId,
text: String? = null,
showAlert: Boolean? = null,
url: String? = null,
cachedTimeSeconds: Int? = null
): Unit = execute(AnswerCallbackQuery(callbackQueryId, text, showAlert, url, cachedTimeSeconds))
public suspend fun TelegramBot.answerCallbackQuery(
callbackQuery: CallbackQuery,
text: String? = null,
showAlert: Boolean? = null,
url: String? = null,
cachedTimeSeconds: Int? = null
): Unit = answerCallbackQuery(callbackQuery.id, text, showAlert, url, cachedTimeSeconds)
public suspend fun TelegramBot.answer(
callbackQuery: CallbackQuery,
text: String? = null,
showAlert: Boolean? = null,
url: String? = null,
cachedTimeSeconds: Int? = null
): Unit = answerCallbackQuery(callbackQuery.id, text, showAlert, url, cachedTimeSeconds)
@@ -0,0 +1,17 @@
package dev.inmo.tgbotapi.extensions.api.answers
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.answers.AnswerGuestQuery
import dev.inmo.tgbotapi.types.GuestQueryId
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult
import dev.inmo.tgbotapi.types.guest.SentGuestMessage
public suspend fun TelegramBot.answerGuestQuery(
guestQueryId: GuestQueryId,
result: InlineQueryResult
): SentGuestMessage = execute(AnswerGuestQuery(guestQueryId, result))
public suspend fun TelegramBot.answer(
guestQueryId: GuestQueryId,
result: InlineQueryResult
): SentGuestMessage = execute(AnswerGuestQuery(guestQueryId, result))
@@ -0,0 +1,69 @@
package dev.inmo.tgbotapi.extensions.api.answers
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.answers.AnswerInlineQuery
import dev.inmo.tgbotapi.requests.answers.InlineQueryResultsButton
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult
import dev.inmo.tgbotapi.types.InlineQueries.query.InlineQuery
import dev.inmo.tgbotapi.types.InlineQueryId
public suspend fun TelegramBot.answerInlineQuery(
inlineQueryID: InlineQueryId,
results: List<InlineQueryResult> = emptyList(),
cachedTime: Int? = null,
isPersonal: Boolean? = null,
nextOffset: String? = null,
button: InlineQueryResultsButton? = null
): Unit = execute(
AnswerInlineQuery(inlineQueryID, results, cachedTime, isPersonal, nextOffset, button)
)
public suspend fun TelegramBot.answerInlineQuery(
inlineQuery: InlineQuery,
results: List<InlineQueryResult> = emptyList(),
cachedTime: Int? = null,
isPersonal: Boolean? = null,
nextOffset: String? = null,
button: InlineQueryResultsButton? = null
): Unit = answerInlineQuery(inlineQuery.id, results, cachedTime, isPersonal, nextOffset, button)
public suspend fun TelegramBot.answer(
inlineQuery: InlineQuery,
results: List<InlineQueryResult> = emptyList(),
cachedTime: Int? = null,
isPersonal: Boolean? = null,
nextOffset: String? = null,
button: InlineQueryResultsButton? = null
): Unit = answerInlineQuery(inlineQuery.id, results, cachedTime, isPersonal, nextOffset, button)
public suspend fun TelegramBot.answerInlineQuery(
inlineQueryID: InlineQueryId,
results: List<InlineQueryResult> = emptyList(),
cachedTime: Int? = null,
isPersonal: Boolean? = null,
nextOffset: String? = null,
switchPmText: String?,
switchPmParameter: String?
): Unit = execute(
AnswerInlineQuery(inlineQueryID, results, cachedTime, isPersonal, nextOffset, switchPmText, switchPmParameter)
)
public suspend fun TelegramBot.answerInlineQuery(
inlineQuery: InlineQuery,
results: List<InlineQueryResult> = emptyList(),
cachedTime: Int? = null,
isPersonal: Boolean? = null,
nextOffset: String? = null,
switchPmText: String?,
switchPmParameter: String?
): Unit = answerInlineQuery(inlineQuery.id, results, cachedTime, isPersonal, nextOffset, switchPmText, switchPmParameter)
public suspend fun TelegramBot.answer(
inlineQuery: InlineQuery,
results: List<InlineQueryResult> = emptyList(),
cachedTime: Int? = null,
isPersonal: Boolean? = null,
nextOffset: String? = null,
switchPmText: String?,
switchPmParameter: String?
): Unit = answerInlineQuery(inlineQuery.id, results, cachedTime, isPersonal, nextOffset, switchPmText, switchPmParameter)
@@ -0,0 +1,17 @@
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
import dev.inmo.tgbotapi.types.webapps.query.SentWebAppMessage
public suspend fun TelegramBot.answerWebAppQuery(
webAppQueryId: WebAppQueryId,
result: InlineQueryResult
): SentWebAppMessage = execute(AnswerWebAppQuery(webAppQueryId, result))
public suspend fun TelegramBot.answer(
webAppQueryId: WebAppQueryId,
result: InlineQueryResult
): SentWebAppMessage = execute(AnswerWebAppQuery(webAppQueryId, result))
@@ -6,18 +6,18 @@ import dev.inmo.tgbotapi.requests.answers.payments.AnswerPreCheckoutQueryOk
import dev.inmo.tgbotapi.types.PreCheckoutQueryId
import dev.inmo.tgbotapi.types.payments.PreCheckoutQuery
suspend fun TelegramBot.answerPreCheckoutQueryOk(
public suspend fun TelegramBot.answerPreCheckoutQueryOk(
id: PreCheckoutQueryId
) = execute(AnswerPreCheckoutQueryOk(id))
suspend fun TelegramBot.answerPreCheckoutQueryOk(
): Unit = execute(AnswerPreCheckoutQueryOk(id))
public suspend fun TelegramBot.answerPreCheckoutQueryOk(
preCheckoutQuery: PreCheckoutQuery
) = answerPreCheckoutQueryOk(preCheckoutQuery.id)
): Unit = answerPreCheckoutQueryOk(preCheckoutQuery.id)
suspend fun TelegramBot.answerPreCheckoutQueryError(
public suspend fun TelegramBot.answerPreCheckoutQueryError(
id: PreCheckoutQueryId,
error: String
) = execute(AnswerPreCheckoutQueryError(id, error))
suspend fun TelegramBot.answerPreCheckoutQueryError(
): Unit = execute(AnswerPreCheckoutQueryError(id, error))
public suspend fun TelegramBot.answerPreCheckoutQueryError(
preCheckoutQuery: PreCheckoutQuery,
error: String
) = answerPreCheckoutQueryError(preCheckoutQuery.id, error)
): Unit = answerPreCheckoutQueryError(preCheckoutQuery.id, error)
@@ -0,0 +1,28 @@
package dev.inmo.tgbotapi.extensions.api.answers.payments
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.answers.payments.AnswerShippingQueryError
import dev.inmo.tgbotapi.requests.answers.payments.AnswerShippingQueryOk
import dev.inmo.tgbotapi.types.ShippingQueryId
import dev.inmo.tgbotapi.types.payments.ShippingOption
import dev.inmo.tgbotapi.types.payments.ShippingQuery
public suspend fun TelegramBot.answerShippingQueryOk(
id: ShippingQueryId,
shippingOptions: List<ShippingOption>
): Unit = execute(AnswerShippingQueryOk(id, shippingOptions))
public suspend fun TelegramBot.answerShippingQueryOk(
shippingQuery: ShippingQuery,
shippingOptions: List<ShippingOption>
): Unit = answerShippingQueryOk(shippingQuery.id, shippingOptions)
public suspend fun TelegramBot.answerShippingQueryError(
id: ShippingQueryId,
error: String
): Unit = execute(AnswerShippingQueryError(id, error))
public suspend fun TelegramBot.answerShippingQueryError(
shippingQuery: ShippingQuery,
error: String
): Unit = answerShippingQueryError(shippingQuery.id, error)
@@ -0,0 +1,12 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.ClearMyDefaultAdministratorRights
public suspend fun TelegramBot.clearMyDefaultAdministratorRights(
forChannels: Boolean? = null
): Unit = execute(ClearMyDefaultAdministratorRights(forChannels))
public suspend fun TelegramBot.clearMyDefaultAdministratorRightsForChannels(): Unit = clearMyDefaultAdministratorRights(forChannels = true)
public suspend fun TelegramBot.clearMyDefaultAdministratorRightsForGroupsAndSupergroups(): Unit = clearMyDefaultAdministratorRights(forChannels = false)
@@ -1,17 +1,17 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLanguageCode
import dev.inmo.micro_utils.language_codes.IetfLang
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(
public suspend fun TelegramBot.deleteMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: IetfLanguageCode?
) = execute(DeleteMyCommands(scope, languageCode))
languageCode: IetfLang?
): Unit = execute(DeleteMyCommands(scope, languageCode))
suspend fun TelegramBot.deleteMyCommands(
public suspend fun TelegramBot.deleteMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String? = null
) = deleteMyCommands(scope, languageCode ?.let(::IetfLanguageCode))
): Unit = deleteMyCommands(scope, languageCode ?.let(::IetfLang))
@@ -2,5 +2,6 @@ package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMe
import dev.inmo.tgbotapi.types.chat.ExtendedBot
suspend fun TelegramBot.getMe() = execute(GetMe)
public suspend fun TelegramBot.getMe(): ExtendedBot = execute(GetMe)
@@ -0,0 +1,18 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLang
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyCommands
import dev.inmo.tgbotapi.types.BotCommand
import dev.inmo.tgbotapi.types.commands.BotCommandScope
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
public suspend fun TelegramBot.getMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: IetfLang? = null
): List<BotCommand> = execute(GetMyCommands(scope, languageCode))
public suspend fun TelegramBot.getMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String?
): List<BotCommand> = getMyCommands(scope, languageCode ?.let(::IetfLang))
@@ -0,0 +1,13 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyDefaultAdministratorRights
import dev.inmo.tgbotapi.types.chat.member.AdministratorChatMember
public suspend fun TelegramBot.getMyDefaultAdministratorRights(
forChannels: Boolean? = null
): AdministratorChatMember = execute(GetMyDefaultAdministratorRights(forChannels))
public suspend fun TelegramBot.getMyDefaultAdministratorRightsForChannels(): AdministratorChatMember = getMyDefaultAdministratorRights(forChannels = true)
public suspend fun TelegramBot.getMyDefaultAdministratorRightsForGroupsAndSupergroups(): AdministratorChatMember = getMyDefaultAdministratorRights(forChannels = false)
@@ -0,0 +1,14 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLang
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyDescription
import dev.inmo.tgbotapi.types.BotDescription
public suspend fun TelegramBot.getMyDescription(
languageCode: IetfLang? = null
): BotDescription = execute(GetMyDescription(languageCode))
public suspend fun TelegramBot.getMyDescription(
languageCode: String?
): BotDescription = getMyDescription(languageCode ?.let(::IetfLang))
@@ -0,0 +1,14 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLang
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyName
import dev.inmo.tgbotapi.types.BotName
public suspend fun TelegramBot.getMyName(
languageCode: IetfLang? = null
): BotName = execute(GetMyName(languageCode))
public suspend fun TelegramBot.getMyName(
languageCode: String?
): BotName = getMyName(languageCode ?.let(::IetfLang))
@@ -0,0 +1,17 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLang
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyCommands
import dev.inmo.tgbotapi.requests.bot.GetMyShortDescription
import dev.inmo.tgbotapi.types.BotShortDescription
import dev.inmo.tgbotapi.types.commands.BotCommandScope
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
public suspend fun TelegramBot.getMyShortDescription(
languageCode: IetfLang? = null
): BotShortDescription = execute(GetMyShortDescription(languageCode))
public suspend fun TelegramBot.getMyShortDescription(
languageCode: String?
): BotShortDescription = getMyShortDescription(languageCode ?.let(::IetfLang))
@@ -0,0 +1,9 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMe
import dev.inmo.tgbotapi.requests.bot.GetMyStarBalance
import dev.inmo.tgbotapi.types.chat.ExtendedBot
import dev.inmo.tgbotapi.types.payments.stars.StarAmount
public suspend fun TelegramBot.getMyStarBalance(): StarAmount = execute(GetMyStarBalance)
@@ -0,0 +1,6 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.RemoveMyProfilePhoto
public suspend fun TelegramBot.removeMyProfilePhoto(): Unit = execute(RemoveMyProfilePhoto)
@@ -1,32 +1,32 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLanguageCode
import dev.inmo.micro_utils.language_codes.IetfLang
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(
public suspend fun TelegramBot.setMyCommands(
commands: List<BotCommand>,
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: IetfLanguageCode?
) = execute(SetMyCommands(commands, scope, languageCode))
languageCode: IetfLang?
): Unit = execute(SetMyCommands(commands, scope, languageCode))
suspend fun TelegramBot.setMyCommands(
public suspend fun TelegramBot.setMyCommands(
vararg commands: BotCommand,
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: IetfLanguageCode?
) = setMyCommands(commands.toList(), scope, languageCode)
languageCode: IetfLang?
): Unit = setMyCommands(commands.toList(), scope, languageCode)
suspend fun TelegramBot.setMyCommands(
public suspend fun TelegramBot.setMyCommands(
commands: List<BotCommand>,
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String? = null
) = setMyCommands(commands, scope, languageCode ?.let(::IetfLanguageCode))
): Unit = setMyCommands(commands, scope, languageCode ?.let(::IetfLang))
suspend fun TelegramBot.setMyCommands(
public suspend fun TelegramBot.setMyCommands(
vararg commands: BotCommand,
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String? = null
) = setMyCommands(commands.toList(), scope, languageCode)
): Unit = 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.ChatCommonAdministratorRights
public suspend fun TelegramBot.setMyDefaultAdministratorRights(
rights: ChatCommonAdministratorRights,
forChannels: Boolean? = null
): Unit = execute(SetMyDefaultAdministratorRights(rights, forChannels))
public suspend fun TelegramBot.setMyDefaultAdministratorRightsForChannels(
rights: ChatCommonAdministratorRights
): Unit = setMyDefaultAdministratorRights(rights, forChannels = true)
public suspend fun TelegramBot.setMyDefaultAdministratorRightsForGroupsAndSupergroups(
rights: ChatCommonAdministratorRights
): Unit = setMyDefaultAdministratorRights(rights, forChannels = false)
@@ -0,0 +1,19 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLang
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyCommands
import dev.inmo.tgbotapi.requests.bot.GetMyDescription
import dev.inmo.tgbotapi.requests.bot.SetMyDescription
import dev.inmo.tgbotapi.types.commands.BotCommandScope
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
public suspend fun TelegramBot.setMyDescription(
description: String? = null,
languageCode: IetfLang? = null
): Unit = execute(SetMyDescription(description, languageCode))
public suspend fun TelegramBot.setMyDescription(
description: String?,
languageCode: String?
): Unit = setMyDescription(description, languageCode ?.let(::IetfLang))
@@ -0,0 +1,19 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLang
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyCommands
import dev.inmo.tgbotapi.requests.bot.GetMyName
import dev.inmo.tgbotapi.requests.bot.SetMyName
import dev.inmo.tgbotapi.types.commands.BotCommandScope
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
public suspend fun TelegramBot.setMyName(
name: String? = null,
languageCode: IetfLang? = null
): Unit = execute(SetMyName(name, languageCode))
public suspend fun TelegramBot.setMyName(
name: String?,
languageCode: String?
): Unit = setMyName(name, languageCode ?.let(::IetfLang))
@@ -0,0 +1,9 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.SetMyProfilePhoto
import dev.inmo.tgbotapi.requests.business_connection.InputProfilePhoto
public suspend fun TelegramBot.setMyProfilePhoto(
photo: InputProfilePhoto
): Unit = execute(SetMyProfilePhoto(photo))
@@ -0,0 +1,15 @@
package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLang
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.SetMyShortDescription
public suspend fun TelegramBot.setMyShortDescription(
shortDescription: String? = null,
languageCode: IetfLang? = null
): Unit = execute(SetMyShortDescription(shortDescription, languageCode))
public suspend fun TelegramBot.setMyShortDescription(
shortDescription: String?,
languageCode: String?
): Unit = setMyShortDescription(shortDescription, languageCode ?.let(::IetfLang))
@@ -0,0 +1,25 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.micro_utils.ksp.variations.GenerateVariations
import dev.inmo.micro_utils.ksp.variations.GenerationVariant
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.ConvertGiftToStars
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.GiftId
import dev.inmo.tgbotapi.types.gifts.Gift
public suspend fun TelegramBot.convertGiftToStars(
businessConnectionId: BusinessConnectionId,
ownedGiftId: GiftId
): Unit = execute(
ConvertGiftToStars(businessConnectionId, ownedGiftId)
)
public suspend fun TelegramBot.convertGiftToStars(
businessConnectionId: BusinessConnectionId,
gift: Gift.Regular
): Unit = convertGiftToStars(
businessConnectionId = businessConnectionId,
ownedGiftId = with(gift) {id}
)
@@ -0,0 +1,20 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.micro_utils.ksp.variations.GenerateVariations
import dev.inmo.micro_utils.ksp.variations.GenerationVariant
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.DeleteBusinessMessages
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.tgbotapi.types.MessageId
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
@GenerateVariations
public suspend fun TelegramBot.deleteBusinessMessages(
businessConnectionId: BusinessConnectionId,
@GenerationVariant(List::class, "messages.map { it.messageId }", "messages", AccessibleMessage::class)
messageIds: List<MessageId>
): Unit = execute(
DeleteBusinessMessages(businessConnectionId, messageIds)
)
@@ -0,0 +1,16 @@
// THIS CODE HAVE BEEN GENERATED AUTOMATICALLY
// TO REGENERATE IT JUST DELETE FILE
// ORIGINAL FILE: DeleteBusinessMessages.kt
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import kotlin.Boolean
import kotlin.collections.List
public suspend fun TelegramBot.deleteBusinessMessages(businessConnectionId: BusinessConnectionId,
messages: List<AccessibleMessage>): Unit = deleteBusinessMessages(
businessConnectionId = businessConnectionId, messageIds = with(messages) {messages.map {
it.messageId }}
)
@@ -0,0 +1,105 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.GetBusinessAccountGifts
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.OwnedGifts
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceivedEvent
import dev.inmo.tgbotapi.types.gifts.OwnedGift
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlin.runCatching
public suspend fun TelegramBot.getBusinessAccountGifts(
businessConnectionId: BusinessConnectionId,
excludeUnsaved: Boolean = false,
excludeSaved: Boolean = false,
excludeUnlimited: Boolean = false,
excludeLimitedUpgradable: Boolean = false,
excludeLimitedNonUpgradable: Boolean = false,
excludeUnique: Boolean = false,
excludeFromBlockchain: Boolean = false,
sortByPrice: Boolean = false,
offset: String? = null,
limit: Int? = null
): OwnedGifts<OwnedGift.OwnedByBusinessAccount> = execute(
GetBusinessAccountGifts(
businessConnectionId,
excludeUnsaved,
excludeSaved,
excludeUnlimited,
excludeLimitedUpgradable,
excludeLimitedNonUpgradable,
excludeUnique,
excludeFromBlockchain,
sortByPrice,
offset,
limit
)
)
/**
* Creates a flow that emits business account gifts in a paginated manner.
*
* This function will automatically handle pagination by using the `nextOffset` from each response
* to fetch the next page of gifts until there are no more gifts to fetch.
*
* @param businessConnectionId The ID of the business connection
* @param excludeUnsaved Whether to exclude unsaved gifts
* @param excludeSaved Whether to exclude saved gifts
* @param excludeUnlimited Whether to exclude unlimited gifts
* @param excludeLimitedUpgradable Whether to exclude limited upgradable gifts
* @param excludeLimitedNonUpgradable Whether to exclude limited non-upgradable gifts
* @param excludeUnique Whether to exclude unique gifts
* @param excludeFromBlockchain Whether to exclude gifts from blockchain
* @param sortByPrice Whether to sort gifts by price
* @param initialOffset The initial offset to start fetching from. If null, starts from the beginning
* @param limit The maximum number of gifts to fetch per request
* @param onErrorContinueChecker A function that determines whether to continue fetching on error.
* Returns true to continue, false to stop. Default is to stop on any error.
* @return A flow that emits [OwnedGifts] containing the fetched gifts
*/
public fun TelegramBot.getBusinessAccountGiftsFlow(
businessConnectionId: BusinessConnectionId,
excludeUnsaved: Boolean = false,
excludeSaved: Boolean = false,
excludeUnlimited: Boolean = false,
excludeLimitedUpgradable: Boolean = false,
excludeLimitedNonUpgradable: Boolean = false,
excludeUnique: Boolean = false,
excludeFromBlockchain: Boolean = false,
sortByPrice: Boolean = false,
initialOffset: String? = null,
limit: Int? = null,
onErrorContinueChecker: suspend (Throwable?) -> Boolean = { false }
): Flow<OwnedGifts<OwnedGift.OwnedByBusinessAccount>> = flow {
var currentOffset = initialOffset
do {
val response = runCatching {
getBusinessAccountGifts(
businessConnectionId,
excludeUnsaved,
excludeSaved,
excludeUnlimited,
excludeLimitedUpgradable,
excludeLimitedNonUpgradable,
excludeUnique,
excludeFromBlockchain,
sortByPrice,
currentOffset,
limit
)
}
if (response.isSuccess) {
val result = response.getOrThrow()
emit(result)
currentOffset = result.nextOffset
} else {
if (onErrorContinueChecker(response.exceptionOrNull())) {
continue
} else {
break
}
}
} while (currentOffset != null)
}
@@ -0,0 +1,12 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.GetBusinessAccountStarBalance
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.payments.stars.StarAmount
public suspend fun TelegramBot.getBusinessAccountStarBalance(
businessConnectionId: BusinessConnectionId
): StarAmount = execute(
GetBusinessAccountStarBalance(businessConnectionId)
)
@@ -0,0 +1,27 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.micro_utils.ksp.variations.GenerateVariations
import dev.inmo.micro_utils.ksp.variations.GenerationVariant
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.ReadBusinessMessage
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.tgbotapi.types.MessageId
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import dev.inmo.tgbotapi.types.toChatId
@GenerateVariations
public suspend fun TelegramBot.readBusinessMessage(
businessConnectionId: BusinessConnectionId,
@GenerationVariant(Chat::class, "chat.id.toChatId()", "chat")
chatId: ChatId,
messageId: MessageId
): Unit = execute(
ReadBusinessMessage(businessConnectionId, chatId, messageId)
)
public suspend fun TelegramBot.readBusinessMessage(
businessConnectionId: BusinessConnectionId,
message: AccessibleMessage
): Unit = readBusinessMessage(businessConnectionId, message.chat.id.toChatId(), message.messageId)
@@ -0,0 +1,20 @@
// THIS CODE HAVE BEEN GENERATED AUTOMATICALLY
// TO REGENERATE IT JUST DELETE FILE
// ORIGINAL FILE: ReadBusinessMessage.kt
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.types.MessageId
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.toChatId
import kotlin.Boolean
public suspend fun TelegramBot.readBusinessMessage(
businessConnectionId: BusinessConnectionId,
chat: Chat,
messageId: MessageId,
): Unit = readBusinessMessage(
businessConnectionId = businessConnectionId, chatId = with(chat) {chat.id.toChatId()}, messageId
= messageId
)
@@ -0,0 +1,12 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.RemoveBusinessAccountProfilePhoto
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
public suspend fun TelegramBot.removeBusinessAccountProfilePhoto(
businessConnectionId: BusinessConnectionId,
isPublic: Boolean = false
): Unit = execute(
RemoveBusinessAccountProfilePhoto(businessConnectionId = businessConnectionId, isPublic = isPublic)
)
@@ -0,0 +1,12 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.SetBusinessAccountBio
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
public suspend fun TelegramBot.setBusinessAccountBio(
businessConnectionId: BusinessConnectionId,
bio: String
): Unit = execute(
SetBusinessAccountBio(businessConnectionId, bio)
)
@@ -0,0 +1,35 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.SetBusinessAccountGiftSettings
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
import dev.inmo.tgbotapi.types.message.abstracts.BusinessContentMessage
/**
* Sets the gift settings for a business account
*/
public suspend fun TelegramBot.setBusinessAccountGiftSettings(
businessConnectionId: BusinessConnectionId,
showGiftButton: Boolean,
acceptedGiftTypes: AcceptedGiftTypes
): Unit = execute(
SetBusinessAccountGiftSettings(
businessConnectionId = businessConnectionId,
showGiftButton = showGiftButton,
acceptedGiftTypes = acceptedGiftTypes
)
)
/**
* Sets the gift settings for a business account using business message context
*/
public suspend fun TelegramBot.setBusinessAccountGiftSettings(
message: BusinessContentMessage<*>,
showGiftButton: Boolean,
acceptedGiftTypes: AcceptedGiftTypes
): Unit = setBusinessAccountGiftSettings(
businessConnectionId = message.businessConnectionId,
showGiftButton = showGiftButton,
acceptedGiftTypes = acceptedGiftTypes
)
@@ -0,0 +1,13 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.SetBusinessAccountName
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
public suspend fun TelegramBot.setBusinessAccountName(
businessConnectionId: BusinessConnectionId,
firstName: String,
lastName: String? = null
): Unit = execute(
SetBusinessAccountName(businessConnectionId, firstName, lastName)
)
@@ -0,0 +1,14 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.InputProfilePhoto
import dev.inmo.tgbotapi.requests.business_connection.SetBusinessAccountProfilePhoto
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
public suspend fun TelegramBot.setBusinessAccountProfilePhoto(
businessConnectionId: BusinessConnectionId,
photo: InputProfilePhoto,
isPublic: Boolean = false
): Unit = execute(
SetBusinessAccountProfilePhoto(businessConnectionId, photo, isPublic)
)
@@ -0,0 +1,15 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.micro_utils.ksp.variations.GenerateVariations
import dev.inmo.micro_utils.ksp.variations.GenerationVariant
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.SetBusinessAccountUsername
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.Username
public suspend fun TelegramBot.setBusinessAccountUsername(
businessConnectionId: BusinessConnectionId,
username: Username? = null
): Unit = execute(
SetBusinessAccountUsername(businessConnectionId, username)
)
@@ -0,0 +1,18 @@
// THIS CODE HAVE BEEN GENERATED AUTOMATICALLY
// TO REGENERATE IT JUST DELETE FILE
// ORIGINAL FILE: SetBusinessAccountUsername.kt
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.types.Username
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import kotlin.Boolean
import kotlin.String
public suspend fun TelegramBot.setBusinessAccountUsername(
businessConnectionId: BusinessConnectionId,
username: String?
): Unit = setBusinessAccountUsername(
businessConnectionId = businessConnectionId,
username = username ?.let { Username.prepare(username) }
)
@@ -0,0 +1,12 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.TransferBusinessAccountStars
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
public suspend fun TelegramBot.transferBusinessAccountStars(
businessConnectionId: BusinessConnectionId,
amount: Int
): Unit = execute(
TransferBusinessAccountStars(businessConnectionId, amount)
)
@@ -0,0 +1,43 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.micro_utils.ksp.variations.GenerateVariations
import dev.inmo.micro_utils.ksp.variations.GenerationVariant
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.ConvertGiftToStars
import dev.inmo.tgbotapi.requests.business_connection.TransferGift
import dev.inmo.tgbotapi.requests.business_connection.UpgradeGift
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.GiftId
import dev.inmo.tgbotapi.types.businessConnectionIdField
import dev.inmo.tgbotapi.types.gifts.Gift
import dev.inmo.tgbotapi.types.keepOriginalDetailsField
import dev.inmo.tgbotapi.types.ownedGiftIdField
import dev.inmo.tgbotapi.types.starCountField
import kotlinx.serialization.SerialName
public suspend fun TelegramBot.transferGift(
businessConnectionId: BusinessConnectionId,
ownedGiftId: GiftId,
newOwnerChatId: ChatId,
transferPaymentStarCount: Int? = null,
): Unit = execute(
TransferGift(
businessConnectionId = businessConnectionId,
ownedGiftId = ownedGiftId,
newOwnerChatId = newOwnerChatId,
transferPaymentStarCount = transferPaymentStarCount
)
)
public suspend fun TelegramBot.transferGift(
businessConnectionId: BusinessConnectionId,
gift: Gift.Regular,
newOwnerChatId: ChatId,
transferPaymentStarCount: Int? = null,
): Unit = transferGift(
businessConnectionId = businessConnectionId,
ownedGiftId = gift.id,
newOwnerChatId = newOwnerChatId,
transferPaymentStarCount = transferPaymentStarCount
)
@@ -0,0 +1,42 @@
package dev.inmo.tgbotapi.extensions.api.business
import dev.inmo.micro_utils.ksp.variations.GenerateVariations
import dev.inmo.micro_utils.ksp.variations.GenerationVariant
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.business_connection.ConvertGiftToStars
import dev.inmo.tgbotapi.requests.business_connection.UpgradeGift
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.GiftId
import dev.inmo.tgbotapi.types.businessConnectionIdField
import dev.inmo.tgbotapi.types.gifts.Gift
import dev.inmo.tgbotapi.types.keepOriginalDetailsField
import dev.inmo.tgbotapi.types.ownedGiftIdField
import dev.inmo.tgbotapi.types.starCountField
import kotlinx.serialization.SerialName
public suspend fun TelegramBot.convertGiftToStars(
businessConnectionId: BusinessConnectionId,
ownedGiftId: GiftId,
keepOriginalDetails: Boolean = false,
starCount: Int? = null
): Unit = execute(
UpgradeGift(
businessConnectionId = businessConnectionId,
ownedGiftId = ownedGiftId,
keepOriginalDetails = keepOriginalDetails,
starCount = starCount
)
)
public suspend fun TelegramBot.convertGiftToStars(
businessConnectionId: BusinessConnectionId,
gift: Gift.Regular,
keepOriginalDetails: Boolean = false,
): Unit = execute(
UpgradeGift(
businessConnectionId = businessConnectionId,
ownedGiftId = gift.id,
keepOriginalDetails = keepOriginalDetails,
starCount = gift.upgradeStarCount
)
)
@@ -0,0 +1,14 @@
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.PublicChat
public suspend fun TelegramBot.exportChatInviteLink(
chatId: ChatIdentifier
): String = execute(ExportChatInviteLink(chatId))
public suspend fun TelegramBot.exportChatInviteLink(
chat: PublicChat
): String = exportChatInviteLink(chat.id)
@@ -3,12 +3,12 @@ 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(
public suspend fun TelegramBot.leaveChat(
chatId: ChatIdentifier
) = execute(LeaveChat(chatId))
): Unit = execute(LeaveChat(chatId))
suspend fun TelegramBot.leaveChat(
public suspend fun TelegramBot.leaveChat(
chat: PublicChat
) = leaveChat(chat.id)
): Unit = leaveChat(chat.id)
@@ -0,0 +1,28 @@
package dev.inmo.tgbotapi.extensions.api.chat.forum
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.forum.CloseForumTopic
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.ForumTopic
import dev.inmo.tgbotapi.types.MessageThreadId
import dev.inmo.tgbotapi.types.chat.Chat
public suspend fun TelegramBot.closeForumTopic(
chatId: ChatIdentifier,
messageThreadId: MessageThreadId
): Unit = execute(
CloseForumTopic(
chatId,
messageThreadId
)
)
public suspend fun TelegramBot.closeForumTopic(
chat: Chat,
messageThreadId: MessageThreadId
): Unit = closeForumTopic(chat.id, messageThreadId)
public suspend fun TelegramBot.closeForumTopic(
chat: Chat,
forumTopic: ForumTopic
): Unit = closeForumTopic(chat.id, forumTopic.messageThreadId)
@@ -0,0 +1,19 @@
package dev.inmo.tgbotapi.extensions.api.chat.forum
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.forum.CloseForumTopic
import dev.inmo.tgbotapi.requests.chat.forum.CloseGeneralForumTopic
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.ForumTopic
import dev.inmo.tgbotapi.types.MessageThreadId
import dev.inmo.tgbotapi.types.chat.Chat
public suspend fun TelegramBot.closeGeneralForumTopic(
chatId: ChatIdentifier
): Unit = execute(
CloseGeneralForumTopic(chatId)
)
public suspend fun TelegramBot.closeGeneralForumTopic(
chat: Chat
): Unit = closeGeneralForumTopic(chat.id)
@@ -0,0 +1,30 @@
package dev.inmo.tgbotapi.extensions.api.chat.forum
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.forum.CreateForumTopic
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.CustomEmojiId
import dev.inmo.tgbotapi.types.ForumTopic
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.utils.RGBColor
public suspend fun TelegramBot.createForumTopic(
chatId: ChatIdentifier,
name: String,
color: RGBColor,
iconEmojiId: CustomEmojiId? = null
): ForumTopic = execute(
CreateForumTopic(
chatId,
name,
color,
iconEmojiId
)
)
public suspend fun TelegramBot.createForumTopic(
chat: Chat,
name: String,
color: RGBColor,
iconEmojiId: CustomEmojiId? = null
): ForumTopic = createForumTopic(chat.id, name, color, iconEmojiId)
Loaded 100 of 1753 files, more files were not shown because too many files have changed in this diff. Show more