package api
Contains implicit conversions to the API classes of particular Telegram models
- Alphabetic
- By Inheritance
- api
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class Bot[F[_]] extends AnyRef
An instance which can communicate with Telegram service and interact with other Telegram users in a certain predefined way
- final case class FailedMethod[I, A](m: Method[I, A], input: I, response: Response[A]) extends Throwable with TelegramError with Product with Serializable
- final case class ResponseDecodingError(json: String) extends Throwable with TelegramError with Product with Serializable
- final class Scenario[F[_], +A] extends AnyVal
Description of an interaction between two parties, where generally one is the application (bot) and the other is Telegram user.
Description of an interaction between two parties, where generally one is the application (bot) and the other is Telegram user.
Particular interaction is coherent with some scenario as long as it matches the description (i.e. every step of the interaction matches the step described in scenario).
Scenario
forms a monad inA
withpure
andflatMap
. - trait TelegramClient[F[_]] extends AnyRef
Client which is able to execute Telegram Bot API methods in effect
F
. - sealed trait TelegramError extends Throwable
Value Members
- implicit def callbackQueryApi(query: CallbackQuery): CallbackQueryAPI
- implicit def chatApi(chat: Chat): ChatApi
- implicit def inlineQueryApi(query: InlineQuery): InlineQueryApi
- implicit def liveLocationApi(message: LocationMessage): LiveLocationAPI
- implicit def messageApi(message: TelegramMessage): MessageApi
- implicit def pollApi(message: PollMessage): PollMessageApi
- implicit def preCheckoutQueryApi(query: PreCheckoutQuery): PreCheckoutQueryAPI
- implicit def shippingQueryApi(query: ShippingQuery): ShippingQueryAPI
- object Bot
- object Broadcast
- object Scenario
- object TelegramClient
- object pipes