Giter VIP home page Giter VIP logo

get_chat_id_bot's Introduction

Get_Chat_ID_Bot

Description

A bot to receive the id of every Telegram chat

You can check our bot here.

Setup

  1. Clone the repository
git clone https://github.com/yehuda-lev/Get_Chat_ID_Bot.git

Setting up Environment Variables

To set up the environment variables for the project, follow these steps:

  1. Copy the .env.example file:
cp .env.example .env
  1. Edit the .env file:

    • Open the .env file in a text editor of your choice.

    • Replace the placeholder values with your actual credentials. You can obtain these credentials from the following sources:

    • Telegram Credentials:

      • TELEGRAM_API_ID and TELEGRAM_API_HASH: Obtain from my.telegram.org.
      • TELEGRAM_BOT_TOKEN: Create a new bot on BotFather.
      • TG_GROUP_TOPIC_ID: ID of the Telegram group where the bot will operate.
      • ADMINS: A comma-separated list of Telegram user IDs that will be granted admin privileges.
      • LIMIT_SPAM: the number of the messages that can be sent in a minute.
  2. Save the .env file:

    • After editing, save the changes to the .env file.

By completing these steps, your environment variables will be properly configured for the project.

Installation

Clone the repository to your local machine. Then, build the Docker image using the following command:

If you want to rebuild the image, you can use the --build flag to force a rebuild: If you want to run the bot in the background, you can use the -d flag:

docker compose up

Credits

This project was created by @yehudalev.


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.