Coder Social home page Coder Social logo

google-it's Introduction

🔥Google-it Telegram Bot

Google Search from telegram bot 😀 (bot works inline)

For using this bot you need to place your group id in your environment. Bot checks its users for a member of your group. Users have to be members of your group for using the bot's functionality! If the user is not a member of your group, the bot automatically sends a message to the user about it.

Setup

Clone this repo:

$ git clone https://github.com/AbduazizZiyodov/google-it.git
$ cd google-it/

Activate virtual enviroment:

$ python -m venv env
$ source env/bin/activate

Install all requirements from file:

$ pip install -r requirements.txt

On .env(dotenv file) write your keys:

# Telegram bot token

TELEGRAM_API_TOKEN = ""

# Search Engine Keys
GOOGLE_API_KEY = ""
CSE_ID = ""

# Your Group ID : integer or string
GROUP_CHAT_ID = ""

# Your Channel ID (OPTIONAL): integer or string

CHANNEL_ID = ""

Running

$ python bot.py

Bot Usage:

After the username of your bot, write some search terms:

BOT_USAGE_1

If search is done , you can see an inline message from the bot. Then you should click it and search results will be sent in your chat.

BOT_USAGE_2

Abduaziz Ziyodov🎯

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.