🤖
DegreetTelegram
  • About DegreetTelegram
  • Getting started
  • Bot example
  • Change logs
  • Handle Updates
    • Handling commands
    • Handling text messages
    • Listening to text
    • Listening to location
    • Listening to contact
    • Listening to media & download
    • Listening to edit messages
    • Listening to other updates
    • Listen to entities: links, email, phone number
  • Basics
    • Context
    • Middlewares
    • RegExp in events
    • One handler for different events
    • Keyboard
    • Options
  • Modularity
    • Blocks of code
    • Layouts (e.g. Menu)
    • Block Scene
    • Step Scene
  • Additional
    • Session, Props, Custom Context
    • Check Subscription
    • Edit and Delete messages
    • Toasts and Alerts
    • Send Media
    • Edit Media
    • Send Dice
    • Kick Chat Member
    • I18n: multilanguage
    • On chat member update, allowed updates
    • Pin & unpin messages
  • Advanced
    • Payments
    • Webhook
    • Copy, Forward message
Powered by GitBook
On this page
  1. Basics

Context

Parameter
Description
Type

sender.id

User ID who sent the message

number

sender.first_name

User first name who sent the message

string

sender.last_name

User last name who sent the message

string

sender.username

Username who sent the message

string

msg.id

Sent message ID

number

msg.date

Date of sent message

number

msg.text

Text of sent message

string

msg.entities

Entities of sent message

Entity

PreviousListen to entities: links, email, phone numberNextMiddlewares

Last updated 3 years ago