Package-level declarations
Types
Numeric Telegram chat identifier carrying a default business connection.
Numeric Telegram chat identifier without embedded request context.
Identifies a Telegram chat either by numeric IdChatIdentifier or by Username.
A custom serializer for the ChatIdentifier sealed interface.
Numeric Telegram chat identifier carrying a default channel direct-message thread.
Numeric Telegram chat identifier carrying a default message thread.
Base interface for all chat invite links. See inheritors for more info or official docs
Represent SecondaryChatInviteLink which have no any restrictions like ChatInviteLinkWithJoinRequest or ChatInviteLinkWithLimitedMembers
Represent SecondaryChatInviteLink which will require an aprovement from one of the administrators
Represent SecondaryChatInviteLink which will have limitation for the amount of chat members to join
Identifier of a join request query.
Represents a location to which a chat is connected.
A format string sent as the date_time_format wire value for a Telegram date-time entity.
Common interface for safe DateTimeEntityFormatting parts. Used for dev.inmo.tgbotapi.types.message.textsources.DateTimeTextSource.
Chat id of group/supergroup additionally carrying ephemeral receiverUser (and optional ephemeralMessageId); used to default receiverUserId/ephemeralMessageId params of ephemeral-related requests
Parameters defining an ephemeral message recipient and optional callback-query replacement behavior.
Serializes every ChatIdentifier subtype while preserving embedded request context.
Also used as User Identifier
Information about a user stopping message generation.
Primary invite link in the chat for this bot
Base interface for all ChatInviteLinks which are NOT PrimaryInviteLink
Builder for DateTimeEntityFormatting. Use buildDateTimeFormat for convenience. DateTimeFormatPart.Relative is mutually exclusive with all component parts. Component output uses Telegram's required week-date-time order regardless of the order of builder calls.
Numeric chat identifier used where Telegram expects a user identifier.
A value class representing a username that always starts with the "@" symbol.
Properties
Returns the embedded business connection, or null when no business connection is available.
Returns the embedded channel direct-message thread, or null when no direct-message thread is available.
Returns the embedded ephemeral-message identifier, or null when no identifier is available.
Returns the receiver UserId for an ephemeral reply: PossiblyEphemeralMessage.receiverUser when available, otherwise OptionallyFromUserMessage.from; returns null for a non-ephemeral message.
Base URL used for public Telegram links.
Telegram URI-scheme prefix used for links handled by Telegram applications.
Telegram URI prefix used to open a user by numeric identifier.
Reserved Telegram username used as the base of managed-bot creation links.
Returns the embedded ephemeral-message receiver, or null when no receiver is available.
Returns the embedded message thread, or null when no message thread is available.
Functions
Builds DateTimeEntityFormatting with the safe TgDateTimeFormatBuilder contract.
Builds ReplyParameters.Ephemeral with allowSendingWithoutReply, checklistTaskId, and pollOptionId, targeting ephemeralMessageId. The target defaults to PossiblyEphemeralMessage.ephemeralMessageId; a missing target produces null.
Replaces embedded request context with the supplied businessConnectionId.
Replaces embedded request context with the supplied channel direct-message threadId.
Replaces embedded request context with the supplied message threadId.
Replaces embedded request context with ephemeral delivery context for receiverUser.
Converts a string with or without a leading @ to Username.