Skip to content

ContextMessageUpdate type definition missing 'session' #914

@fsoft72

Description

@fsoft72

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Telegraf.js Version: 3.34.1
  • Node.js Version: 12.11.1
  • Operating System: Ubuntu Linux 19.10

Expected Behavior

ContextMessageUpdate type definition is missing 'session' attribute definition

Current Behavior

When trying to access ctx.session in TypeScript code generates an error

Fix

Add:

session: any

in the ContextMessageUpdate definition (use 'any' because the session can be augmented by user scripts)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions