Skip to main content

CrystalDocs builds documentation for every shard, on request. The announcement: Documentation for every shard, on CrystalBits.

CrystalDocs

    Browse DocsCrystalShardsAbout

    github.com/nilsding/tourmaline

    Types

    • Slice
    • String
    • Tourmaline
      • Animation
      • Annotations
        • Catch
        • Command
        • Edited
        • Hears
        • On
        • OnCallbackQuery
        • OnChosenInlineResult
        • OnInlineQuery
      • Audio
      • BaseParser
      • BotCommand
      • BotCommandScope
      • BotCommandScopeAllChatAdministrators
      • BotCommandScopeAllGroupChats
      • BotCommandScopeAllPrivateChats
      • BotCommandScopeChat
      • BotCommandScopeChatAdministrators
      • BotCommandScopeChatMember
      • BotCommandScopeDefault
      • Button
      • CallbackGame
      • CallbackQuery
      • Chat
        • Type
      • ChatAction
      • ChatAdministratorRights
      • ChatInviteLink
      • ChatJoinRequest
      • ChatLocation
      • ChatMember
      • ChatMemberAdministrator
      • ChatMemberBanned
      • ChatMemberLeft
      • ChatMemberMember
      • ChatMemberOwner
      • ChatMemberRestricted
      • ChatMemberUpdated
      • ChatPermissions
      • ChatPhoto
      • ChosenInlineResult
      • Client
        • CoreMethods
        • GameMethods
        • PassportMethods
        • PaymentMethods
        • PollMethods
        • StickerMethods
        • TDLightMethods
        • WebhookMethods
      • Contact
      • Dice
      • Document
      • EncryptedCredentials
      • EncryptedPassportElement
        • Type
      • Error
        • BadRequest
        • BadWebhook
        • BadWebhookAddrInfo
        • BadWebhookNoAddressAssociatedWithHostname
        • BadWebhookPort
        • BotBlocked
        • BotDomainInvalid
        • BotKicked
        • ButtonDataInvalid
        • ButtonURLInvalid
        • CantDemoteChatCreator
        • CantGetUpdates
        • CantInitiateConversation
        • CantParseEntities
        • CantParseUrl
        • CantRemoveChatOwner
        • CantRestrictSelf
        • CantTalkWithBots
        • ChatAdminRequired
        • ChatDescriptionIsNotModified
        • ChatIdIsEmpty
        • ChatNotFound
        • ConflictError
        • ConnectionLost
        • CurrencyTotalAmountInvalid
        • GroupDeactivated
        • InlineKeyboardExpected
        • InvalidHTTPUrlContent
        • InvalidPeerID
        • InvalidQueryID
        • InvalidResultID
        • InvalidStickersSet
        • InvalidUserId
        • MemberListInaccessible
        • MessageCantBeDeleted
        • MessageCantBeEdited
        • MessageError
        • MessageIdInvalid
        • MessageIdentifierNotSpecified
        • MessageIsNotAPoll
        • MessageIsTooLong
        • MessageNotModified
        • MessageTextIsEmpty
        • MessageToDeleteNotFound
        • MessageToEditNotFound
        • MessageToForwardNotFound
        • MessageToReplyNotFound
        • MessageWithPollNotFound
        • MethodIsNotAvailable
        • MethodNotAvailableInPrivateChats
        • MethodNotKnown
        • MigrateToChat
        • NeedAdministratorRightsInTheChannel
        • NetworkError
        • NoStickerInRequest
        • NotEnoughRightsOther
        • NotEnoughRightsToPinMessage
        • NotEnoughRightsToRestrict
        • NotFound
        • ObjectExpectedAsReplyMarkup
        • PaymentProviderInvalid
        • PhotoAsInputFileRequired
        • PhotoDimensions
        • PollCantBeStopped
        • PollCantHaveMoreOptions
        • PollError
        • PollHasAlreadyClosed
        • PollMustHaveMoreOptions
        • PollOptionsMustBeNonEmpty
        • PollQuestionMustBeNonEmpty
        • PollSizeError
        • PollsCantBeSentToPrivateChats
        • PollsOptionsLengthTooLong
        • PoolRetryAttemptsExceeded
        • RequestTimeoutError
        • ResultIdDuplicate
        • RetryAfter
        • StartParamInvalid
        • TerminatedByOtherGetUpdates
        • Throttled
        • TooMuchMessages
        • TypeOfFileMismatch
        • URLHostIsEmpty
        • Unauthorized
        • UnavailableMembers
        • UnsupportedUrlProtocol
        • UserDeactivated
        • UserNotFound
        • ValidationError
        • WebhookRequireHTTPS
        • WrongFileIdentifier
        • WrongLiveLocationPeriod
        • WrongRemoteFileIdSpecified
      • EventHandler
      • EventMiddleware
      • ForceReply
      • Format
        • Bold
        • Code
        • CodeBlock
        • Group
        • Italic
        • KeyValueItem
        • LineItem
        • Link
        • Section
        • Strikethrough
        • SubSection
        • SubSubSection
        • Token
        • Underline
        • UserMention
      • ForumTopicClosed
      • ForumTopicCreated
      • ForumTopicReopened
      • Game
      • GameHighScore
      • HTMLParser
      • Handlers
        • CallbackQueryHandler
          • Context
        • ChosenInlineResultHandler
          • Context
        • CommandHandler
          • Context
        • EditedHandler
          • Context
        • HearsHandler
          • Context
        • InlineQueryHandler
          • Context
        • UpdateHandler
          • Context
      • HashPersistence
      • Helpers
      • InlineKeyboardButton
      • InlineKeyboardMarkup
        • Builder
      • InlineQuery
      • InlineQueryResult
        • Builder
      • InlineQueryResultArticle
      • InlineQueryResultAudio
      • InlineQueryResultCachedAudio
      • InlineQueryResultCachedDocument
      • InlineQueryResultCachedGif
      • InlineQueryResultCachedMpeg4Gif
      • InlineQueryResultCachedPhoto
      • InlineQueryResultCachedSticker
      • InlineQueryResultCachedVideo
      • InlineQueryResultCachedVoice
      • InlineQueryResultContact
      • InlineQueryResultDocument
      • InlineQueryResultGame
      • InlineQueryResultGif
      • InlineQueryResultLocation
      • InlineQueryResultMpeg4Gif
      • InlineQueryResultPhoto
      • InlineQueryResultVenue
      • InlineQueryResultVideo
      • InlineQueryResultVoice
      • InputContactMessageContent
      • InputInvoiceMessageContent
      • InputLocationMessageContent
      • InputMedia
      • InputMediaAnimation
      • InputMediaAudio
      • InputMediaDocument
      • InputMediaPhoto
      • InputMediaVideo
      • InputMessageContent
      • InputTextMessageContent
      • InputVenueMessageContent
      • Invoice
      • JsonPersistence
      • KemalAdapter
      • KeyboardBuilder
      • KeyboardButton
      • KeyboardButtonPollType
      • LabeledPrice
      • Location
      • LoginURL
      • LuckyBotHandler
      • MaskPosition
      • MenuButton
      • MenuButtonCommands
      • MenuButtonDefault
      • MenuButtonWebApp
      • Message
        • SenderType
      • MessageAutoDeleteTimerChanged
      • MessageEntity
      • Middleware
        • Context
        • StopIteration
      • Model
      • NilPersistence
      • OrderInfo
      • PaginatedKeyboard
      • ParseMode
      • PassportData
      • PassportElementError
      • PassportElementErrorDataField
      • PassportElementErrorFile
      • PassportElementErrorFiles
      • PassportElementErrorFrontSide
      • PassportElementErrorReverseSide
      • PassportElementErrorSelfie
      • PassportElementErrorTranslationFile
      • PassportElementErrorTranslationFiles
      • PassportElementErrorUnspecified
      • PassportFile
      • Persistence
      • PhotoSize
      • Poll
        • Type
      • PollAnswer
      • PollOption
      • PreCheckoutQuery
      • ProximityAlertTriggered
      • ReplyKeyboardMarkup
        • Builder
      • ReplyKeyboardRemove
      • RoutedMenu
        • Builder
        • Page
          • Builder
          • KeyboardBuilder
      • SentWebAppMessage
      • ShippingAddress
      • ShippingOption
      • ShippingQuery
      • Stage
        • Context
        • Step
      • Sticker
        • Type
      • StickerSet
      • SuccessfulPayment
      • TFile
      • Update
      • UpdateAction
      • User
      • UserProfilePhotos
      • Venue
      • Video
      • VideoChatEnded
      • VideoChatParticipantsInvited
      • VideoChatScheduled
      • VideoChatStarted
      • VideoNote
      • Voice
      • WebAppData
      • WebAppInfo
      • WebhookInfo
    module

    Tourmaline::Format

    The Tourmaline::Format module provides an easy to use DSL for formatting text for Telegram. It takes care of escaping entities for you so you don't have to.

    Heavily inspired by the mdtex module from Kantek, so thanks Simon!

    Nested types

    • Tourmaline::Format::Bold
    • Tourmaline::Format::Code
    • Tourmaline::Format::CodeBlock
    • Tourmaline::Format::Group
    • Tourmaline::Format::Italic
    • Tourmaline::Format::KeyValueItem
    • Tourmaline::Format::LineItem
    • Tourmaline::Format::Link
    • Tourmaline::Format::Section
    • Tourmaline::Format::Strikethrough
    • Tourmaline::Format::SubSection
    • Tourmaline::Format::SubSubSection
    • Tourmaline::Format::Token
    • Tourmaline::Format::Underline
    • Tourmaline::Format::UserMention

    Advertisement

    Crystal jobs from CrystalGigs

    • Your posting here

      Reach Crystal developers on CrystalGigsFirst party

    CrystalDocs.org - Crystal Shard Documentation Hosting

    The CrystalBits newsletter

    Crystal tutorials, release news and community writing. One email when there is something new, never a stream.

    You will get one confirmation email to check the address is yours. Unsubscribe any time.

    GitHubCrystalShardsCrystalGigsCrystalBitsCrystal LanguageStatsSponsor

    The Bushido Collective builds and maintains this site.
    Licensed under the Apache License 2.0