Metadata-Version: 2.1
Name: telegram-coffee-break
Version: 0.1.0
Summary: send telegram notification using a bot
Home-page: https://github.com/RomainGratier/telegram-coffee-break
Author: Andrew Carter
Author-email: andrewjcarter@gmail.com
License: MIT
Description: # telegram-coffee-break
        > It's time to take a coffee break! your python code is running, and you'll be notified through telegram when you will have your results.
        
        
        ## Goal
        
        Create a telegram bot that will send you notifications on your phone to follow your code progress.
        
        ## Installation
        
        ```sh
        pip install telegram-coffee-break
        ```
        
        ## Preparation
        
        ** First: You will need to create a new telegram bot as follow: **
        
        Go to the BotFather (if you open it in desktop, make sure you have the Telegram app), then create new bot by sending the /newbot command. Follow the steps until you get the username and token for your bot. You can go to your bot by accessing this URL: https://telegram.me/YOUR_BOT_USERNAME and your token should looks like this.
        
        ```sh
        7044NNNNN:AAEtcZ*************
        ```
        
        Keep the token safe in a file and set your bot.
        
        ** Next: You need to find your telegram ID **
        
        Go to the userinfobot and send /start. He will give you your personal ID.
        
        ```sh
        Id: 871NNNNN
        First: lol
        Last: lolilol
        Lang: en
        ```
        
        ## Usage example
        
        ```sh
        from telegrambotalarm import TelegramBot
        
        TOKEN = 'NNNNNNNNNN:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
        MYID = 'NNNNNNNNN'
        
        bot = TelegramBot(TOKEN, MYID)
        bot.send_message('Your code is running')
        
        ... do modeling etc ...
        
        message = {
            train accuracy : train_acc,
            test accuracy : test_acc
        }
        bot.send_message(message)
        bot.send_image('decision_tree.png', caption=message)
        ```
        
Keywords: python telegram
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
