Git Product home page Git Product logo

wpyrogram's Introduction

Pyrogram
Telegram MTProto API Framework for Python
Homepage Documentation Releases News

Pyrogram - Woto's experimental fork

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots

WARNING: We merge changes made to few of pyrogram forks plus changes made by us to this repository. All the features are just customized feature mostly for personal use; there is no guarantee in them being stable, USE AT YOUR OWN RISK. All of the repositories that we merge (some) features from are listed in Extra.md file.

from pyrogram import Client, filters

app = Client("my_account")


@app.on_message(filters.private)
async def hello(client, message):
    await message.reply("Hello from Pyrogram!")


app.run()

Pyrogram is a modern, elegant and asynchronous MTProto API framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot identity (bot API alternative) using Python.

Support

If you'd like to support Pyrogram, you can consider:

Key Features

  • Ready: Install Pyrogram with pip and start building your applications right away.
  • Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.
  • Elegant: Low-level details are abstracted and re-presented in a more convenient way.
  • Fast: Boosted up by TgCrypto, a high-performance cryptography library written in C.
  • Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.
  • Async: Fully asynchronous (also usable synchronously if wanted, for convenience).
  • Powerful: Full access to Telegram's API to execute any official client action and more.

Installing

From git (recommended)

NOTE: in order to use WPyrogram, please uninstall pyrogram first.

pip uninstall pyrogram
pip install 'wpyrogram'

Resources

  • Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right away and discover more in-depth material for building your client applications.
  • Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements.

wpyrogram's People

Contributors

delivrance avatar bakatrouble avatar aliwoto avatar teriks avatar mendelmaleh avatar alissonlauffer avatar josxa avatar cyanbook avatar spechide avatar null-nick avatar kalmengr avatar princic-1837592 avatar octonezd avatar mahesh0253 avatar 1pyxa1 avatar trenoduro avatar yoilyl avatar furoin avatar colinshark avatar jonatan1609 avatar kurimuzonakuma avatar ripeey avatar shivangkakkar avatar mrnaif2018 avatar usernein avatar customicon avatar smartmanoj avatar sunda001 avatar krishna-singhal avatar harsh-br0 avatar

Stargazers

Mohammed Reza Pourghorban avatar  avatar Alimahdi Bahrami avatar Sajad Dehghani avatar  avatar  avatar Nikhil avatar

Watchers

 avatar Mohammed Reza Pourghorban avatar

wpyrogram's Issues

ForumTopics

Checklist

  • I am sure the error is coming from Pyrogram's code and not elsewhere
  • I have searched in the issue tracker for similar bug reports, including closed ones
  • I ran pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip and reproduced the issue using the latest development version

Description

When running the project "woto-scp" this problem occurs.

Steps to reproduce

.

Code example

No response

Logs

client.get_forum_topics_by_id(
                       File
                     "/root/pourghorban-scp/woto-scp/ven
                     v-scp/lib/python3.10/site-packages/
                     pyrogram/methods/chats/get_forum_to
                     pics_by_id.py", line 76, in
                     get_forum_topics_by_id
                         for i in r:
                     TypeError: 'ForumTopics' object is
                     not iterable
dispatcher.py:276 ERROR: 'ForumTopics' object is not iterable
Traceback (most recent call last):
  File "/root/pourghorban-scp/woto-scp/venv-scp/lib/python3.10/site-packag
es/pyrogram/dispatcher.py", line 231, in handler_worker
    await parser(update, users, chats)
  File "/root/pourghorban-scp/woto-scp/venv-scp/lib/python3.10/site-packag
es/pyrogram/dispatcher.py", line 85, in edited_message_parser
    parsed, _ = await message_parser(update, users, chats)
  File "/root/pourghorban-scp/woto-scp/venv-scp/lib/python3.10/site-packag
es/pyrogram/dispatcher.py", line 73, in message_parser
    await pyrogram.types.Message._parse(
  File "/root/pourghorban-scp/woto-scp/venv-scp/lib/python3.10/site-packag
es/pyrogram/types/messages_and_media/message.py", line 1130, in _parse
    parsed_message.topic = await client.get_forum_topics_by_id(
  File "/root/pourghorban-scp/woto-scp/venv-scp/lib/python3.10/site-packag
es/pyrogram/methods/chats/get_forum_topics_by_id.py", line 76, in get_foru
m_topics_by_id
    for i in r:
TypeError: 'ForumTopics' object is not iterable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.