# ShopSavvy for Telegram Bot

> A Telegram bot that lets you search products, compare prices across retailers, and browse deals — all from Telegram chat. Built with Telegraf 4.x.

*Source: https://shopsavvy.com/integrations/telegram*

- **Type:** Integration (Chat Bots)
- **Language:** TypeScript
- **Status:** live
- **Repository:** https://github.com/shopsavvy/telegram-shopsavvy-bot (MIT)

## Setup

### 1. Get a ShopSavvy Data API key

Create a key at shopsavvy.com/data. Keys look like ss_live_ followed by 32 characters. Keep it out of source control.

### 2. Install

Get the integration from its repository and follow the README's install section: https://github.com/shopsavvy/telegram-shopsavvy-bot

```bash
git clone https://github.com/shopsavvy/telegram-shopsavvy-bot.git
```

### 3. Add your API key

Set the SHOPSAVVY_API_KEY environment variable to your key (shell, .env file or Telegram Bot's secrets settings), or pass it to the client as the README shows.

### 4. Make your first call

From the shopsavvy/telegram-shopsavvy-bot README (2. Configure environment):

```bash
export SHOPSAVVY_API_KEY="ss_live_your_key_here"
export TELEGRAM_BOT_TOKEN="your_telegram_bot_token"
```

### 5. 3. Install and run

From the shopsavvy/telegram-shopsavvy-bot README (3. Install and run):

```bash
bun install
bun run start
```

### 6. 3. Install and run

From the shopsavvy/telegram-shopsavvy-bot README (3. Install and run):

```bash
bun run dev
```

## Features

- /search, /price, /deals, /help commands
- Inline keyboard buttons to view prices
- Prices sorted lowest-first
- Deal grades and community votes

## Use Cases

- Quick price checks from your phone
- Share deal finds in group chats
- Monitor prices without leaving Telegram

## What data, how often, which direction

- **Data:** Product records, current offers from tens of thousands of retailers and price history back to 2011, dense from 2019, from the ShopSavvy Data API. Prices are in US dollars.
- **How often:** Every offer carries the time it was last checked. With the Data API you can schedule refreshes hourly, daily or weekly for retailers we can re-check through an official retailer API; other retailers update as ShopSavvy sees them.
- **Direction:** ShopSavvy data flows into Telegram Bot. Requests carry only what you ask about (identifiers, search terms or schedules) and your API key.

## FAQ

### Do I need an API key?
Yes. The Telegram Bot integration calls the ShopSavvy Data API, which needs a Data API key. Create one at shopsavvy.com/data, then add it as the setup steps above show.

### What data does it return?
ShopSavvy product records (title, brand, model, barcode, ASIN), current offers from tens of thousands of retailers with price, availability and condition, and price history back to 2011, dense from 2019. Products can be looked up by barcode, ASIN, URL or model number. Prices are in US dollars.

### How fresh are the prices?
Every offer carries the time ShopSavvy last checked it, so you can see how current each price is. Through the Data API you can schedule refreshes hourly, daily or weekly for retailers we can re-check through an official retailer API; other retailers update as ShopSavvy sees them.

### Is my API key stored securely?
The README has you supply it through the SHOPSAVVY_API_KEY environment variable or your own configuration, so it stays out of source code. The key is sent to the ShopSavvy API (api.shopsavvy.com) over HTTPS in the Authorization header. You can revoke a key and create a new one at shopsavvy.com/data/api-keys.

### Is it open source?
Yes. The source is on GitHub at https://github.com/shopsavvy/telegram-shopsavvy-bot under the MIT license.

## Related Integrations

- [Discord Bot](https://shopsavvy.com/integrations/discord.md): Search products and compare prices from Discord
- [Slack App](https://shopsavvy.com/integrations/slack.md): Search products and compare prices from Slack

## Links

- Data API documentation: https://shopsavvy.com/data/documentation.md
- Data API plans: https://shopsavvy.com/data#pricing
- All integrations: https://shopsavvy.com/integrations.md
