Skip to content

mivmi/snakegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snakegram

A Python library for Telegram

This project is still a work in progress and not yet finished.

If you have any questions, ideas, or run into any issues, feel free to join the Telegram group and reach out:

Telegram Group


You can install the latest development version directly from GitHub:

pip install git+https://github.com/mivmi/snakegram.git@dev

Example

from snakegram import filters, Telegram

client = Telegram(
    'session',
    api_id=1234567,
    api_hash='0123456789abcdef0123456789abcdef'
)

@client.on_update(
    filters.new_message
    & 
    filters.proxy.message.message.lower() == 'ping'
)
async def ping_handler(update):
    await client.send_message(update.message.peer_id, '*PONG*')

client.start()
client.wait_until_disconnected()

About

Telegram client library for Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages