Trait

com.bot4s.telegram.api

GameManager

Related Doc: package api

Permalink

trait GameManager extends WebRoutes

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.

Self Type
GameManager with BotBase[Future] with BotExecutionContext with AkkaImplicits
Linear Supertypes
WebRoutes, StrictLogging, LoggerHolder, BotBase[Future], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GameManager
  2. WebRoutes
  3. StrictLogging
  4. LoggerHolder
  5. BotBase
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val client: RequestHandler[Future]

    Permalink
    Definition Classes
    BotBase
  2. implicit abstract val monad: MonadError[Future, Throwable]

    Permalink
    Definition Classes
    BotBase
  3. abstract val port: Int

    Permalink
    Definition Classes
    WebRoutes

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def allowedUpdates: Option[Seq[UpdateType]]

    Permalink
    Definition Classes
    BotBase
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. val gameManagerRoute: Route

    Permalink
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. val interfaceIp: String

    Permalink
    Definition Classes
    WebRoutes
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging → LoggerHolder
  16. final val loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerHolder
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def receiveCallbackQuery(callbackQuery: CallbackQuery): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  21. def receiveChannelPost(message: Message): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  22. def receiveChosenInlineResult(chosenInlineResult: ChosenInlineResult): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  23. def receiveEditedChannelPost(message: Message): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  24. def receiveEditedMessage(editedMessage: Message): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  25. def receiveExtMessage(extMessage: (Message, Option[User])): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  26. def receiveInlineQuery(inlineQuery: InlineQuery): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  27. def receiveMessage(message: Message): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  28. def receivePreCheckoutQuery(preCheckoutQuery: PreCheckoutQuery): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  29. def receiveShippingQuery(shippingQuery: ShippingQuery): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  30. def receiveUpdate(u: Update, botUser: Option[User]): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  31. def request: RequestHandler[Future]

    Permalink
    Definition Classes
    BotBase
  32. def routes: Route

    Permalink
    Definition Classes
    WebRoutes
  33. def run(): Future[Unit]

    Permalink
    Definition Classes
    WebRoutes → BotBase
  34. def shutdown(): Unit

    Permalink
    Definition Classes
    WebRoutes → BotBase
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. lazy val unit: Future[Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    BotBase
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from WebRoutes

Inherited from StrictLogging

Inherited from LoggerHolder

Inherited from BotBase[Future]

Inherited from AnyRef

Inherited from Any

Ungrouped