This bot allows you to submit URLs to Google's Indexing API directly through Telegram.
- Create a Telegram bot using @BotFather
- Set up a Google Cloud Project and enable the Indexing API
- Create a Service Account and download the credentials
- Copy
.env.example
to.env
and fill in your credentials:- TELEGRAM_BOT_TOKEN: Your Telegram bot token
- GOOGLE_CLIENT_EMAIL: Service account email
- GOOGLE_PRIVATE_KEY: Service account private key
/start
- Show available commands/index [url]
- Submit a URL for indexing/remove [url]
- Remove a URL from index
pnpm install
pnpm start