/telegram-webhook

Proof of concept telegram bot for webhooks

Primary LanguageTypeScriptMIT LicenseMIT

Telegram Bot, built on Cyclic 🤖

Transformed & remade from starter-telegram-bot

How to run it locally?

Prerequisites

Get your bot token

  • Grab your Telegram bot's API token by sending a message to @BotFather.

Send /newbot to @BotFather to create a new bot and get its API token.

Local installation

  • Clone the repository to your machine from command prompt or terminal: git clone https://github.com/DaxxTrias/telegram-webhook && cd telegram-webhook
  • Take your key from messaging @BotFather. (see above)
  • Rename the file .env.sample to .env and edit the lines inside to suit your needs:
TELEGRAM_TOKEN=... # YOUR TELEGRAM API TOKEN
  • Download dependencies: yarn
  • Start your bot: yarn dev

Usage Examples

Being greeted by the bot

Bot responding to the yo command with

Applying text effects

Bot applying various text effects such as monospace and italic to the text

Invoking the bot in other chats

Note This feature is also known as Inline Queries.

Bot applying the monospace text effect to the text