Class ContextManager

A class representing a ContextManager used to manage and manipulate contexts.

Hierarchy

  • ContextManager

Constructors

Properties

Methods

Constructors

Properties

client: Evogram

The Evogram client instance.

contexts: {
    Bot: any;
    BotCommand: any;
    CallbackQuery: any;
    Chat: any;
    ChatAdministratorRights: any;
    ChatInviteLink: any;
    ChatJoinRequest: any;
    ChatLocation: any;
    ChatMember: any;
    ChatMemberAdministrator: any;
    ChatMemberBanned: any;
    ChatMemberMember: any;
    ChatMemberOwner: any;
    ChatMemberRestricted: any;
    ChatMemberUpdated: any;
    ChatPermissions: any;
    ChatPhoto: any;
    ChosenInlineResult: any;
    Contact: any;
    DetailedChat: any;
    ForumTopic: any;
    ForwardMessage: any;
    IncomingMessage: any;
    InlineQuery: any;
    Location: any;
    MenuButton: any;
    Message: any;
    MessageEntity: any;
    OrderInfo: any;
    Poll: any;
    PollAnswer: any;
    PollOption: any;
    PreCheckoutQuery: any;
    ShippingAddress: any;
    ShippingQuery: any;
    Update: any;
    User: any;
    Venue: any;
} = ...

An object containing all the contexts.

Type declaration

  • Bot: any
  • BotCommand: any
  • CallbackQuery: any
  • Chat: any
  • ChatAdministratorRights: any
  • ChatInviteLink: any
  • ChatJoinRequest: any
  • ChatLocation: any
  • ChatMember: any
  • ChatMemberAdministrator: any
  • ChatMemberBanned: any
  • ChatMemberMember: any
  • ChatMemberOwner: any
  • ChatMemberRestricted: any
  • ChatMemberUpdated: any
  • ChatPermissions: any
  • ChatPhoto: any
  • ChosenInlineResult: any
  • Contact: any
  • DetailedChat: any
  • ForumTopic: any
  • ForwardMessage: any
  • IncomingMessage: any
  • InlineQuery: any
  • Location: any
  • MenuButton: any
  • Message: any
  • MessageEntity: any
  • OrderInfo: any
  • Poll: any
  • PollAnswer: any
  • PollOption: any
  • PreCheckoutQuery: any
  • ShippingAddress: any
  • ShippingQuery: any
  • Update: any
  • User: any
  • Venue: any

Methods

  • Get the context for a given key.

    Type Parameters

    Parameters

    • key: ISupportedContexts

      The key to get the context for. *

    • data: object

      The data to use when creating a new context.

    Returns T

    The context for the given key or the data if the context is not found.

Generated using TypeDoc