Giter Club home page Giter Club logo

gdriveindexsearchbot's Introduction

Telegram Movies / Series Index Search Bot

This Telegram bot allows users to search for data via an API and provides the results as a Telegraph page. The bot responds to search commands, fetches data, and sends results back to the user.

Features

  • Responds to /start command with a welcome message.
  • Searches for data based on user input.
  • Posts search results to a Telegraph page.
  • Supports both public and authorized modes.

Prerequisites

  1. Python 3.8+: Ensure you have Python 3.8 or higher installed on your system.
  2. Telegram Bot Token: You need a Telegram Bot Token from BotFather.
  3. API Endpoint: The bot fetches data from an external API. Ensure the API URL is available.
  4. Telegraph API: Used for posting search results. No additional setup is required beyond the provided account creation in the code.

Setup

  1. Clone the Repository

    git clone https://github.com/xskdnj/gdriveindexsearchbot.git
    cd gdriveindexsearchbot
  2. Create a Virtual Environment

    python3 -m venv venv
    source venv/bin/activate  # On Windows use: venv\Scripts\activate
  3. Install Dependencies

    pip3 install -r requirements.txt
  4. Edit config.env File

    TELEGRAM_BOT_TOKEN=your_telegram_bot_token
    PUBLIC_MODE=True
    MESSAGE_DELETION_TIME=10
    OWNER_ID=your_telegram_user_id
    AUTHORIZED_CHATS=comma_separated_list_of_chat_ids
  5. Run the Bot

    python3 bot.py

Usage

  • Start Command: Send /start to the bot to receive a welcome message.
  • Search: Send any text to the bot to initiate a search. The bot will respond with search results or an error message.

Logging

Logs are available in the console. They include errors and other important messages.

Contributing

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Create a new Pull Request.

  • Join our Telegram Channel: For further support and updates, Stark Media Hub.

gdriveindexsearchbot's People

Contributors

whitedemon938 avatar

Forkers

mixologyxbot

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.