final class ChatApi extends AnyVal
Telegram API for the chat object. Offers a convenient access to the related Telegram methods.
- Alphabetic
- By Inheritance
- ChatApi
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def administrators[F[_]](implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[List[ChatMember]]
- returns
list of administrators of this chat.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def deletePhoto[F[_]](implicit arg0: TelegramClient[F]): F[Boolean]
Deletes the photo of the this chat.
- def deleteStickerSet[F[_]](implicit arg0: TelegramClient[F]): F[Boolean]
Deletes a group of stickers set for this chat.
- def details[F[_]](implicit arg0: TelegramClient[F]): F[DetailedChat]
- returns
Detailed information about this chat
- def exportInviteLink[F[_]](implicit arg0: TelegramClient[F]): F[String]
Generates new invite link ofr this chat.
Generates new invite link ofr this chat.
Any previously generated link is revoked.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def getMember[F[_]](userId: Int)(implicit arg0: TelegramClient[F]): F[ChatMember]
- returns
Detailed information about the member of this chat.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kickUser[F[_]](userId: Int, untilDate: Option[Int] = None)(implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Kicks a user from this chat.
- def leave[F[_]](implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Abandons this chat.
- def membersCount[F[_]](implicit arg0: TelegramClient[F]): F[Int]
- returns
number of members of this chat.
- def pinMessage[F[_]](messageId: Int, silent: Boolean = true)(implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Pins message in this chat, unless it's private chat.
- def promoteMember[F[_]](userId: Int, canChangeInfo: Option[Boolean] = None, canPostMessages: Option[Boolean] = None, canEditMessages: Option[Boolean] = None, canDeleteMessages: Option[Boolean] = None, canInviteUsers: Option[Boolean] = None, canRestrictMembers: Option[Boolean] = None, canPinMessages: Option[Boolean] = None, canPromoteMembers: Option[Boolean] = None)(implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Promotes or demotes a user in this chat.
- def restrictMember[F[_]](userId: Int, permissions: ChatPermissions, until: Option[Int] = None)(implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Restricts a user in a supergroup.
Restricts a user in a supergroup.
The bot must be an administrator in the supergroup and must have the appropriate admin rights.
- def send[F[_], M](content: MessageContent[M], replyToMessageId: Option[Int] = None, keyboard: Keyboard = Keyboard.Unchanged, disableNotification: Boolean = false)(implicit arg0: TelegramClient[F]): F[M]
Sends a message to this chat.
- def sendAlbum[F[_]](media: List[InputMedia], disableNotification: Boolean = false)(implicit arg0: TelegramClient[F]): F[List[TelegramMessage]]
Sends a list of media files as an album.
Sends a list of media files as an album.
- media
Must include 2-10 items
- def setAction[F[_]](action: ChatAction)(implicit arg0: TelegramClient[F]): F[Boolean]
Sets the status of the bot for this chat.
Sets the status of the bot for this chat.
The action is set for 5 seconds or until the first message is send by the bot.
- def setDefaultPermissions[F[_]](permissions: ChatPermissions)(implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Sets default permissions for all chat members.
Sets default permissions for all chat members.
The bot must be an administrator in the group or a supergroup and must have the can_restrict_members admin rights.
- def setDescription[F[_]](description: String)(implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Changes the description of this chat if it's a group, a supergroup or a channel.
- def setTitle[F[_]](title: String)(implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Changes the title of this chat, unless it's private chat.
- def toString(): String
- Definition Classes
- Any
- def unbanMember[F[_]](userId: Int)(implicit arg0: TelegramClient[F]): F[Boolean]
Unbans previously kicked user.
- def unpinMessage[F[_]](implicit arg0: TelegramClient[F], arg1: Applicative[F]): F[Boolean]
Unpins pinned chat message.