Skip to content

Returned Variables

Sauraj edited this page Oct 3, 2022 · 2 revisions

Stored Variables

These are the variable stored by Update Function, which is used to get Updates from the bot in the present chats. So, we store all important variable returned by Telegram Bot API Get Updates.

1. All DIfferent IDs

RET_MSG_ID
  • This Variable Store the Message ID of the message the Update Function returned.
RET_CHAT_ID
  • This Variable Store the Chat ID of the Chat the Update Function returned.
RET_CHAT_TYPE
  • This Variable Store the Chat Type of the Chat the Update Function returned.
MSGGER
  • This Variable Store the User ID of the Messager the Update Function returned.
RET_FILE_ID
  • This Variable Store the File ID of the File the Update Function returned.

2. All DIfferent Strings

RET_MSG_TEXT
  • This Variable Store the text of the Message the Update Function returned.
FIRST_NAME
  • This Variable Store the First Name of the Messager the Update Function returned.
LAST_NAME
  • This Variable Store the Last Name of the Messager the Update Function returned.
USERNAME
  • This Variable Store the Username of the Messager the Update Function returned.

3. Replies

RET_REPLIED_MSG_ID
  • This Variable Store the Message ID of the message to which the current message have been replied to.
RET_REPLIED_MSGGER_ID
  • This Variable Store the User ID of the User to which the current message have been replied to.
RET_REPLIED_MSGGER_FIRST_NAME
  • This Variable Store the Fisrt Name of the Messager to which the current message have been replied to.
RET_REPLIED_MSGGER_LAST_NAME
  • This Variable Store the Last Name of the Messager to which the current message have been replied to.
RET_REPLIED_MSGGER_USERNAME
  • This Variable Store the Username of the messager to which the current message have been replied to.
RET_REPLIED_MSG_TEXT
  • This Variable Store the Text of the message to which the current message have been replied to.
RET_REPLIED_FILE_ID
  • This Variable Store the File ID of the File to which the current message have been replied to.

4. Stickers

STICKER_EMOJI
  • This Variable Store the Emoji of the Sticker the Update Function returned.
STICKER_FILE_ID
  • This Variable Store the File ID of the Sticker the Update Function returned.
STICKER_EMOJI
  • This Variable Store the Name of the Sticker Pack the Update Function returned.

By @noobyysauraj and @Hakimi0804