Metadata-Version: 2.4
Name: oxgram
Version: 0.0.14b2
Summary: ㅤ
Home-page: https://github.com/Clinton-Abraham
Author: Clinton Abraham
Author-email: clintonabrahamc@gmail.com
Keywords: bot,bots,telegram
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: ~=3.10
Description-Content-Type: text/markdown
Requires-Dist: TgCrypto-pyrofork
Requires-Dist: kurigram
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

<p align="center">
 📦 <a href="https://pypi.org/project/oxgram" style="text-decoration:none;">Oxgram</a>
</p>

<p align="center">
   <a href="https://telegram.me/Space_x_bots"><img src="https://img.shields.io/badge/Sᴘᴀᴄᴇ 𝕩 ʙᴏᴛꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
   <a href="https://telegram.me/clinton_abraham"><img src="https://img.shields.io/badge/Cʟɪɴᴛᴏɴ Aʙʀᴀʜᴀᴍ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
   <a href="https://telegram.me/sources_codes"><img src="https://img.shields.io/badge/Sᴏᴜʀᴄᴇ ᴄᴏᴅᴇꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
</p>

```python

from Oxgram.functions import Pyrogram

dcid = await Pyrogram.get01(update)

print(dcid)

```

```python
from pyrogram import Client, filters
from pyrogram.types import (InlineKeyboardMarkup, InlineKeyboardButton)

from Oxgram.pyromod.types import ListenerTypes
from Oxgram.pyromod.exceptions import ListenerStopped


app = Client(
    "my_bot",
    api_id=123456,
    api_hash="YOUR_API_HASH",
    bot_token="YOUR_BOT_TOKEN"
)


@app.on_message(filters.command("start"))
async def start(client, message):

    keyboard = InlineKeyboardMarkup(
        [
            [
                InlineKeyboardButton(
                    "❌ Cancel",
                    callback_data="cancel_listen"
                )
            ]
        ]
    )

    msg = await message.reply("Send me a message:", reply_markup=keyboard)
    try:
        result = await client.listen(
            listener_type=ListenerTypes.MESSAGE,
            chat_id=message.chat.id,
            user_id=message.from_user.id,
        )
        await msg.edit_text(f"✅ Received:\n\n{result.text}")
    except ListenerStopped:
        await msg.edit_text("❌ Listening cancelled.")


@app.on_callback_query(filters.regex("^cancel_listen$"))
async def cancel_listen(client, callback_query):

    await callback_query.answer("Cancelling...")
    await client.stop_listening(
        listener_type=ListenerTypes.MESSAGE,
        chat_id=callback_query.message.chat.id,
        user_id=callback_query.from_user.id,
    )


app.run()
```
