Metadata-Version: 1.1
Name: aiotelegram
Version: 0.1.0
Summary: Tiny asyncio-based telgram api wrapper library
Home-page: https://github.com/pohmelie/aiotelegram
Author: pohmelie
Author-email: multisosnooley@gmail.com
License: WTFPL
Description: # aiotelegram
        Tiny asyncio-based telgram api wrapper library.
        
        ## Reasons
        * [aiotg](https://github.com/szastupov/aiotg) is framework, not library and have no proxy support.
        * Raw api calls translation is better for understanding and will not break if telegram api will be changed.
        * `snake_case`
        
        ## Features:
        * Simple as telegram api is.
        * Based on [`aiohttp`](https://github.com/KeepSafe/aiohttp).
        * Proxy available (via [`aiohttp`](https://github.com/KeepSafe/aiohttp) [`ProxyConnector`](http://aiohttp.readthedocs.io/en/stable/client_reference.html#aiohttp.ProxyConnector)).
        * `snake_case` api converted to telegram `camelCase`.
        * Polling `offset` handled for you via `get_updates` method.
        * Source code is [short and simple](https://github.com/pohmelie/aiotelegram/blob/master/aiotelegram.py).
        
        ## Usage
        ### Polling updates
        ```python
        import aiotelegram
        
        
        async def ...(...):
        
            api = aiotelegram.Api(token)
            while True:
        
                response = await api.get_updates()
                if not response["ok"]:
        
                    ...
        
                else:
        
                    for update in response["result"]:
        
                        ...
        
                await asyncio.sleep(delay)
        ```
        ### Sending message
        ```python
        async def ...(...):
        
            await api.send_message(
                chat_id=123456,
                text="*foobar*",
                parse_mode="Markdown",
            )
        ```
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
