final class MessageApi extends AnyVal
Telegram API for the any message object. Offers a convenient access to the related Telegram methods.
- Alphabetic
- By Inheritance
- MessageApi
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MessageApi(message: TelegramMessage)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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.
- 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.
- 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.
- 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.
- def forward[F[_]](to: Chat, disableNotification: Option[Boolean] = None)(implicit arg0: TelegramClient[F]): F[TelegramMessage]
Forwards this message to another chat.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
- def toString(): String
- Definition Classes
- Any