Skip to content

Telegram Bot that sends the updated Toncoin price to a channel every minute. Easy to configure and run, use the Toncoin and Telegram API to automate notifications.

License

Notifications You must be signed in to change notification settings

dzj3an/Toncoin-Price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toncoin Price Bot

This Telegram bot posts the price of Toncoin on a specific channel every minute. It is useful for those who want to closely follow Toncoin quote.

Support the creator by joining their development channel on Telegram: J3an | Dev

💖 Support the Developer

If you found this tool useful, consider supporting the developer by making a donation. Your support helps maintain and improve this project.

☕️ Donate here: dzj3an.github.io/donate.html

Features

  • Get the price of Toncoin from an official API.
  • Send updates to the configured Telegram channel.
  • You can turn off the process or turn it on whenever you like.

You can see the functionalities of the Bot by joining the following channel:
https://t.me/iTonPrice


Requirements

Make sure you have the following dependencies installed:

You can install them by running:

pip install -r requirements.txt

Configuration

  1. Clone the repository:

    git clone https://github.com/dzj3an/Toncoin-Price.git
    cd Toncoin-Price
  2. Get your credentials:

    • BOT_TOKEN: Generate a token for your bot from @ BotFather on Telegram.
    • API_HASH y API_ID: Create an application on the site of Telegram to get these credentials.
    • TON_TOKEN: Sign up for Ton Console to get an access token.
  3. Configure credentials in config.py:

    BOT_TOKEN = "YOUR_BOT_TOKEN"
    API_HASH = "YOUR_API_HASH"
    API_ID = YOUR_API_ID  # Example: 12345678
    TON_TOKEN = "YOUR_TON_TOKEN"
    OWNERS_ID = [123456789]  # Bot administrators IDs
    CHANNEL_TON = -1001234567890  # Channel ID where prices will be sent

Execution

Run the bot with the following command:

python main.py

When you start, go to the Bot and press /menu then turn on the process and you're done.


Credits

This bot was created by J3an.

You would help a lot if you follow the page of the bookstore that we use in this bot to connect with Telegram. This library is kurigram, a fork of pyrogram.

Find information on your official channel:
Kurigram

Leave your star in this repository and share it with your friends. 😊

About

Telegram Bot that sends the updated Toncoin price to a channel every minute. Easy to configure and run, use the Toncoin and Telegram API to automate notifications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages