Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devsubid/telegram-bot

Telegram Bot using nodeJS with Typescript
https://github.com/devsubid/telegram-bot

nodejs telegram-bot typescirpt

Last synced: 6 days ago
JSON representation

Telegram Bot using nodeJS with Typescript

Awesome Lists containing this project

README

        

# [Telegram Bot](https://github.com/itsme-Subid/Telegram-Bot)

A Telegram Bot using Node.js in typescript ✨

## πŸ“‘ Quick Start

> If you are new to Telegram bots, read the official [Introduction for Developers](https://core.telegram.org/bots) written by the Telegram team.
>
> **_Warning_**: This BOT is not yet ready for production. It is still in development. 🚧
>
> ### Requirements:
>
> - [TypeScript v4](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html)
> - [Node.js v18](https://nodejs.org/)
> - Atleast 1vCPU , 512MB RAM and 40GB Storage.

### Steps:

- `Star⭐` this Repo to get updates.

- Create a bot from [@BotFather](https://t.me/BotFather) and get the access token.

- Clone this Repo:

```bash
git clone https://github.com/itsme-Subid/Telegram-Bot.git
```

Or, [Download](https://codeload.github.com/itsme-Subid/Telegram-Bot/zip/refs/heads/main) as a `zip` file.

- Install all dependencies and devDependencies:

using [yarn](https://yarnpkg.com/) package manager:

```bash
yarn add
```

Or using [npm](https://www.npmjs.com/) package manager:

```bash
npm install
```

- Rename the `.env.example` file to `.env` and fill it with access token.

- Start the `Bot` in `Production`:

using [yarn](https://yarnpkg.com/) package manager:

```bash
yarn start
```

Or using [npm](https://www.npmjs.com/) package manager:

```bash
npm start
```

Or, Start the `Bot` in `Development environment`:

using [yarn](https://yarnpkg.com/) package manager:

```bash
yarn dev
```

Or using [npm](https://www.npmjs.com/) package manager:

```bash
npm run dev
```

- Use the BOT πŸŽ‰