Packages

c

canoe.api.models

MessageApi

final class MessageApi extends AnyVal

Telegram API for the any message object. Offers a convenient access to the related Telegram methods.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MessageApi
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MessageApi(message: TelegramMessage)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def delete[F[_]](implicit arg0: TelegramClient[F]): F[Boolean]

    Deletes this message.

    Deletes this message.

    There are limitations what message can be deleted: - A message can only be deleted if it was sent less than 48 hours ago. - Bots can delete outgoing messages in private chats, groups, and supergroups. - Bots can delete incoming messages in private chats. - Bots granted can_post_messages permissions can delete outgoing messages in channels. - If the bot is an administrator of a group, it can delete any message there. - If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.

  6. def editCaption[F[_]](caption: String)(implicit arg0: TelegramClient[F]): F[Either[Boolean, TelegramMessage]]

    Changes the caption of this message.

    Changes the caption of this message.

    returns

    On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

  7. def editReplyMarkup[F[_]](keyboard: Option[InlineKeyboardMarkup])(implicit arg0: TelegramClient[F]): F[Either[Boolean, TelegramMessage]]

    Changes the reply markup of this message.

    Changes the reply markup of this message.

    returns

    On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

  8. def editText[F[_]](text: String)(implicit arg0: TelegramClient[F]): F[Either[Boolean, TelegramMessage]]

    Changes the text of this message.

    Changes the text of this message.

    returns

    On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

  9. def forward[F[_]](to: Chat, disableNotification: Option[Boolean] = None)(implicit arg0: TelegramClient[F]): F[TelegramMessage]

    Forwards this message to another chat.

  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def reply[F[_], M](content: MessageContent[M], keyboard: Keyboard = Keyboard.Unchanged, disableNotification: Boolean = false)(implicit arg0: TelegramClient[F]): F[M]

    Sends new message as a reply to this message.

  13. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped