Metadata-Version: 2.4
Name: syncgram
Version: 1.0.2
Summary: Simple synchronous Telegram Bot API library on Python.
Author-email: Armen <kazaryanarmen71@gmail.com>
License: MIT
Project-URL: Documentation, https://syncgram.readthedocs.io/en/latest
Project-URL: Repository, https://github.com/kazaryanarmen/syncgram
Project-URL: Issues, https://github.com/kazaryanarmen/syncgram/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests==2.34.2
Dynamic: license-file

# SyncGram

[![PyPI version](https://img.shields.io/pypi/v/syncgram.svg)](https://pypi.org/project/syncgram)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Telegram Bot API](https://img.shields.io/badge/Telegram%20Bot%20API-10.3-blue?logo=telegram&logoColor=white)](https://core.telegram.org/bots/api)


**syncgram** is a simple synchronous Telegram Bot API library in Python.

---

## 🚀 Installation

From PyPI:
```bash
pip install syncgram
```

From GitHub:
```bash
pip install git+https://github.com/kazaryanarmen/syncgram.git
```

---

## 💡 Example code
Create a simple Telegram Bot in just a few minutes:
```python
from syncgram import TelegramBot, EventRouter

# Initialize the bot
bot = TelegramBot(token="BOT_TOKEN")

# Initialize the router
router = EventRouter()

# Register a message router
@router.message()
def receive_messages(message):
    bot.methods.send_message(
        chat_id=message.chat.id,
        text=f"You said: {message.text}"
    )

# Start the bot via polling
if __name__ == "__main__":
    bot.start_polling(router)
```

---

## 📢 Stay connected

[![Telegram Channel](https://img.shields.io/badge/Telegram%20Channel-blue?logo=telegram&logoColor=white)](https://t.me/syncgramdev)
