Giter Club home page Giter Club logo

woto-scp's Introduction

woto-scp

This project is a customized version of scp-5170.

A highly customized UserBot for Telegram written in Python3, using WPyrogram.

DISCLAIMER

WITH GREAT POWER COMES GREAT RESPONSIBILITY. THE DEVELOPERS OF THIS USERBOT WON'T BE HELD RESPONSIBLE FOR ANY MISUSE OF THIS PROJECT.

  • Please before using any feature of this project, make sure you have read Telegram Terms of Service and Telegram Privacy Policy.
  • Before misusing any feature of this bot against someone (e.g. spamming, privacy violation, etc), please put yourself in their place and ask yourself would you be ok if someone does this to you?.
  • Features implemented in this project are for educational, testing and research purposes only. We won't be held responsible for any misuse of the features. We hold the right to take down this project or any of its features at any time without any prior notice.
  • This project uses WPyrogram, a custom fork of Pyrogram and might be unstable and have different behaviors than the original Pyrogram; use it at your own risk.
  • This is just a personal project. The owner is not responsible for adding custom-made features to the project. If you want to add a feature, you can do it yourself and send a pull request. If the owner likes the feature, he will add it to the project.

woto-scp's People

Contributors

aliwoto avatar customicon avatar fdeghy avatar pourghorban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

woto-scp's Issues

forward_messages_with_delay: Task exception was never retrieved

logs:

base_events.py:1758 ERROR: Task exception was never retrieved
future: <Task finished name='Task-4906693' coro=<WotoClientBase.forward_me
ssages_with_delay() done, defined at /root/woto-scp/scp/core/clients/woto_
base.py:916> exception=MessageIdInvalid('Telegram says: [400 MESSAGE_ID_IN
VALID] - The message id is invalid (caused by "messages.ForwardMessages")'
)>
Traceback (most recent call last):
  File "/root/woto-scp/scp/core/clients/woto_base.py", line 927, in forwar
d_messages_with_delay
    return await self.forward_messages(
  File "/root/woto-scp/scp/core/clients/woto_base.py", line 84, in forward
_messages
    return await super().forward_messages(
  File "/root/woto-scp/scp-venv/lib/python3.10/site-packages/pyrogram/meth
ods/messages/forward_messages.py", line 82, in forward_messages
    r = await self.invoke(
  File "/root/woto-scp/scp/core/clients/woto_base.py", line 710, in invoke
    return await super().invoke(
  File "/root/woto-scp/scp-venv/lib/python3.10/site-packages/pyrogram/meth
ods/advanced/invoke.py", line 79, in invoke
    r = await self.session.invoke(
  File "/root/woto-scp/scp-venv/lib/python3.10/site-packages/pyrogram/sess
ion/session.py", line 361, in invoke
    return await self.send(query, timeout=timeout)
  File "/root/woto-scp/scp-venv/lib/python3.10/site-packages/pyrogram/sess
ion/session.py", line 331, in send
    RPCError.raise_it(result, type(data))
  File "/root/woto-scp/scp-venv/lib/python3.10/site-packages/pyrogram/erro
rs/rpc_error.py", line 91, in raise_it
    raise getattr(
pyrogram.errors.exceptions.bad_request_400.MessageIdInvalid: Telegram says
: [400 MESSAGE_ID_INVALID] - The message id is invalid (caused by "message
s.ForwardMessages")

'None' is being processed in _parse_inline_reply_markup method

traceback:

dispatcher.py:253 ERROR: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.10/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
    await handler.callback(self.client, *args)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/pyromod/listen/listen.py", line 93, in resolve_listener
    await self.user_callback(client, message, *args)
  File "/home/ubuntu/aliwoto/projects/py/woto-scp/scp/plugins/user/pm_log.py", line 30, in pm_log_handler
    await user.send_message(
  File "/home/ubuntu/aliwoto/projects/py/woto-scp/scp/core/clients/raw_client.py", line 318, in send_message
    reply_markup = self._parse_inline_reply_markup(reply_markup)
  File "/home/ubuntu/aliwoto/projects/py/woto-scp/scp/core/clients/woto_base.py", line 167, in _parse_inline_reply_markup
    for current_row_title in current:
TypeError: 'NoneType' object is not iterable

gitpull: The message sent is empty or contains invalid characters

Error logs:

dispatcher.py:253 ERROR: Telegram says: [400 MESSAGE_EMPTY] - The message sent is empty or contains invalid characters (caused by "messages.EditMessage")
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
    await handler.callback(self.client, *args)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pyromod/listen/listen.py", line 93, in resolve_listener
    await self.user_callback(client, message, *args)
  File "/home/ubuntu/aliwoto/projects/py/woto-scp/scp/plugins/user/files.py", line 90, in gitpull
    await r.edit_text(html_mono(str(output)[:4000]), parse_mode=ParseMode.HTML)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pyrogram/types/messages_and_media/message.py", line 2777, in edit_text
    return await self._client.edit_message_text(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pyrogram/methods/messages/edit_message_text.py", line 80, in edit_message_text
    r = await self.invoke(
  File "/home/ubuntu/aliwoto/projects/py/woto-scp/scp/core/clients/wotobase.py", line 150, in invoke
    return await super().invoke(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pyrogram/methods/advanced/invoke.py", line 77, in invoke
    r = await self.session.invoke(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pyrogram/session/session.py", line 361, in invoke
    return await self.send(query, timeout=timeout)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pyrogram/session/session.py", line 331, in send
    RPCError.raise_it(result, type(data))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it
    raise getattr(
pyrogram.errors.exceptions.bad_request_400.MessageEmpty: Telegram says: [400 MESSAGE_EMPTY] - The message sent is empty or contains invalid characters (caused by "messages.EditMessage")

References:

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.