TelegramBot

TelegramBot

Telegram-optimized Bot. Sets default values etc. to what Telegram's Bot API requires

Constructor

new TelegramBot(options)

Parameters:
Name Type Description
options object

Normal Bot class' constructor object

Properties
Name Type Description
token string

Bot's API token without Telegram's URL If set, it replaces object.apiUrl

Properties:
Name Type Description
me object

Telegram Bot's identity (data returned by getMe)

Source:

Methods

identify()

Gets the bot's identity using Telegram Bot API's /getMe method and saves it to this.me

Source: