Metadata-Version: 2.1
Name: telegram-botup
Version: 0.5.4
Summary: Library for development Telegram bots
Home-page: UNKNOWN
Author: Dima Shebotinov
Author-email: groovestreetmagic@gmail.com
License: UNKNOWN
Project-URL: Source Code, https://bitbucket.org/dimashebo/telegram-botup
Description: # Telegram-botup
        
        The library has several utilities for creating telegram bots:
        
        - **Dispatcher** handles incoming updates
        - **Sender** implements Telegram API methods
        - Other utils, types and etc
        
        
        ## Installation
        ```
        $ pip install telegram-botup
        ```
        
        ## Example
        ```
        from flask import Flask, request
        from botup import Dispatcher, Sender
        
        TOKEN = "token"
        
        flask_app = Flask(__name__)
        dispatcher = Dispatcher()
        sender = Sender(TOKEN)
        
        
        @dispatcher.message_handler('hello')
        def hello_handler(chat_id, update):
            sender.send_message(chat_id, f'Hello {update.message.from_.first_name}')
        
        
        @flask_app.route(f'/{TOKEN}', methods=['POST'])
        def index():
            dispatcher.handle(request.get_json())
            return "!", 200
        
        ```
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Python Software Foundation License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
