Crates.io | search-bot |
lib.rs | search-bot |
version | 0.1.1 |
source | src |
created_at | 2023-12-21 17:03:58.28751 |
updated_at | 2023-12-21 18:26:21.526976 |
description | Telegram search bot |
homepage | |
repository | https://github.com/kolserdav/search-bot |
max_upload_size | |
id | 1077244 |
size | 63,091 |
This Rust kit allows you to create a Telegram bot that can search through the Search API and open other websites. Currently, search is only supported through the Google Search API.
Before you start, make sure you have the following:
cargo install search-bot
.env
file from .env.example
file in your [workdir
]:GOOGLE_SEARCH_API_KEY=[secret-string]
GOOGLE_SEARCH_APP_ID=[special-string]
TELOXIDE_TOKEN=[secret-string]
ALLOWED_USERS=id1,id2 # To get your id, start the bot and run command /getid
workdir
:cd /path/to/my/workdir
search-bot
To watch more logs set the system env variable RUST_LOG=info
To search
: enter any text to the bot.
To open any site
: enter to the bot a site URL starting with http://
or https://
Happy hacking!