Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BOT_TOKEN=952920973:AAGFpuzir-eRj1Sx0R1m9uVT6SD4ml3gFqs
SUPER_ADMIN_ID=601954832
ADMIN_IDS=123456789,987654321
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.env
config.json
node_modules
*.png
# Ignore node_modules folder
node_modules/

# Ignore dist folder (hasil kompilasi TypeScript)
dist/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Abhinav Kasamsetty
Copyright (c) 2025 M Amamiya Ahmad

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

62 changes: 23 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,23 @@
# crypto-bot

Telegram bot that uses the CoinMarketCap API and the Binance API to get information on cryptocurrencies and the global cryptocurrency market.

Talk to @coinmarketcap_info_bot on Telegram! <https://t.me/coinmarketcap_info_bot>

## Installation
1. Clone the repo to your computer and install the required dependencies.
```console
git clone https://github.com/abhinavk99/crypto-bot.git
cd crypto-bot
npm install
```
2. Get Binance API key and secret from your Binance user settings.
3. Get a Telegram bot token from [@BotFather](https://t.me/BotFather).
4. Make a file called `.env` in the repo directory.
5. Copy/paste the below into the file.
```
TELEGRAM_TOKEN=Token here
BINANCE_KEY=Key here
BINANCE_SECRET=Secret here
```
6. Put your Telegram token and Binance API key and secret where it says to in the config. Do not put quotes around the tokens.
7. Run the bot.
```console
node bot.js
```

## Commands
| Command | Description | Usage | Example |
| --- | --- | --- | --- |
| /info | Get info on coin with that name | /info `<coin>` | `/info Bitcoin` |
| /info | Get info on coin with that CoinMarketCap rank | /info `<number>` | `/info 11` |
| /global | Get total market information | /global | `/global` |
| / | Get latest Binance ticker price for a coin | /`<ticker>` | `/ETH` |
| /chart | Get chart on historical price for a coin | /chart `<coin>` | `/chart Bitcoin` |

## Releases
Releases start at v1.1.0 because I didn't know how to use git tags before then and manually changed the versions in package.json
# Telegram Store Bot

## Overview
Telegram Store Bot is a powerful bot built using **Node.js (TypeScript)** and the **grammY framework**, designed for **selling digital products** directly within Telegram. This bot enables store owners to manage products, process transactions, and engage with customers efficiently.

The bot supports **multiple roles**:
- **Super Admin & Admin**: Manage store settings, products, and users.
- **User**: Browse, purchase products, and track transactions.

## Features
- **🏠 Main Menu**: Provides easy navigation with the following sections:
- **Dashboard**
- **Store/Buy Product**
- **Referral & Bonus System**
- **📊 Statistics**
- **About Us & Extra Menu**
- **Multi-language Support**: Users can choose from multiple languages, including English, Indonesian, Chinese, Japanese, Russian, Portuguese, Vietnamese, and more.
- **Interactive Buttons**: Utilizes both **keyboard buttons** and **inline buttons** for seamless user interaction.
- **Message Formatting**: Supports **HTML** and **Markdown** for rich text display.

## Conclusion
Telegram Store Bot is a feature-rich e-commerce solution for selling digital products on Telegram. It offers seamless navigation, multiple languages, interactive buttons, and a structured **Main Menu** to ensure an engaging user experience. This bot is highly customizable and optimized for **performance and scalability**.

261 changes: 0 additions & 261 deletions bot.js

This file was deleted.

Loading