Skip to content

Neko01t/telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Telegram Bot

This is a simple Telegram bot built with Node.js using the node-telegram-bot-api library. The bot provides various fun features, including sending images, GIFs, and cat facts.

Features

  • Start Command: Welcomes users and provides information about the bot.
  • Photo Command: Sends a random waifu image.
  • GIF Command: Sends a predefined GIF.
  • Sticker Command: Sends a specific sticker.
  • Cat Fact Command: Provides random cat facts.
  • Email Check Command: Checks Gmail username availability.

Getting Started

Prerequisites

  • Node.js (version 12 or higher)
  • npm (Node Package Manager)
  • A Telegram bot token from BotFather

Installation

1. Clone the repository:

git clone https://github.com/neko01t/telegram-bot

2 Navigate to the project directory:

cd your-repo-name

3 Install the dependencies:

npm install

4 Create a .env file in the root directory and add your bot token:

TOKEN=your-telegram-bot-token

Running the Bot

To start the bot, run:

node index.js

Commands

  • /start: Welcome message and bot info.
  • /photo: Send a random waifu image.
  • /gif: Send a predefined GIF.
  • /sticker: Send a specific sticker.
  • /catfact: Get a random cat fact.
  • /emailcheck: Check the availability of a Gmail username.

Contributing

If you would like to contribute to this project, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

my first telegram bot using JavaScript . this bot have many stuff and just experiment of mine to understand the REST Apis and using js to make a tg bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors