Package

com.bot4s.telegram

api

Permalink

package api

Visibility
  1. Public
  2. All

Type Members

  1. trait ActorBroker extends BotBase[Future]

    Permalink

    Provides bare-bones harness for actors.

    Provides bare-bones harness for actors. Redirects all Updates to a broker actor.

  2. trait AkkaDefaults extends AkkaImplicits

    Permalink
  3. trait AkkaImplicits extends AnyRef

    Permalink
  4. trait AkkaTelegramBot extends TelegramBot with AkkaDefaults

    Permalink
  5. trait GameManager extends WebRoutes

    Permalink

    Provides basic endpoints to manage game's scoring.

    Provides basic endpoints to manage game's scoring. setScore getScore

    Game data is shared with the game, base64-encoded in the URL. This offer NO security at all, all data is passed au-clair. Altering the scores is trivial.

    The "secure" implementations I've seen so far are based on security though obscurity, all of them can be reverse-engineered to alter the scores.

    If you happen to have an idea of how to make it secure, please open an issue, or even better, submit a PR with your approach.

  6. case class Payload(user: User, chatId: Option[ChatId] = None, messageId: Option[Int] = None, inlineMessageId: Option[String] = None, gameManagerHost: String, gameShortName: String) extends Product with Serializable

    Permalink

    Data shared with the game.

  7. trait WebRoutes extends BotBase[Future] with StrictLogging

    Permalink
  8. trait Webhook extends WebRoutes with StrictLogging

    Permalink

    Uses a webhook, as an alternative to polling, to receive updates.

    Uses a webhook, as an alternative to polling, to receive updates.

    Automatically registers the webhook on run().

Value Members

  1. object Payload extends Serializable

    Permalink

Ungrouped