Metadata-Version: 2.1
Name: Alby7503TBot
Version: 1.0.6
Summary: Lightweight telegram bot library.
Home-page: https://github.com/Alby7503/TBot
Author: Alberto Vona
Author-email: alberto.vona24@gmail.com
License: GNU AGPLv3
Description: # TBot
        ## Lightweight telegram bot library for python.
        <br>
        
        ```
        """example.py"""
        from TBot import TBot
        
        BOT = TBot("<token>")
        BOT.update_frequence = 0.5  # seconds
        
        
        @BOT.command("/help")
        def help_command(event):
            """Help command handler"""
            BOT.send(event, "Help Message")
        
        
        @BOT.command("/chat")
        def chat(event):
            """Send chat id"""
            group = BOT.get_chat(event)
            if group:
                args = ["title", "type", "id"]
                message = ""
                for i in args:
                    message += i.capitalize() + ': ' + str(getattr(group, i)) + "\n"
                BOT.send(event, message)
        
        
        @BOT.command("*")
        def generic(event):
            """Generic command fallback"""
            BOT.send(event, "You said: " + event.text)
        
        
        BOT.run()
        ```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
