Skip to content

Commit

Permalink
added new methods and memes.py ;_;
Browse files Browse the repository at this point in the history
added new methods to message class and updated the base class

added copyright

added memes.py  -__-
  • Loading branch information
rking32 committed Apr 11, 2020
1 parent d3c5d5e commit 33016b0
Show file tree
Hide file tree
Showing 61 changed files with 2,015 additions and 676 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def testing(message: Message):
### Project Credits

* [Specially these projects](https://github.com/uaudith/Userge#inspiration)
* [Specially to these projects](https://github.com/uaudith/Userge#inspiration)
* [@uaudIth](https://t.me/uaudIth)
* [@K_E_N_W_A_Y](https://t.me/K_E_N_W_A_Y)
* [@nawwasl](https://t.me/nawwasl)
Expand All @@ -84,4 +84,4 @@ async def testing(message: Message):
### Copyright & License

* Copyright (C) 2020 [@SLBOTS](https://t.me/slbotsupdates)
* Licensed under the terms of the [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007](https://github.com/uaudith/Userge/LICENSE)
* Licensed under the terms of the [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007](https://github.com/uaudith/Userge/blob/master/LICENSE)
11 changes: 11 additions & 0 deletions genStrSession.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Copyright (C) 2020 by UsergeTeam@Telegram, < https://t.me/theUserge >.
#
# All rights reserved.
#
# This file is part of < https://github.com/uaudith/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# file that should have been included as part of this package.


from pyrogram import Client
import asyncio

Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ selenium
google-api-python-client
google-auth-httplib2
google-auth-oauthlib
oauth2client
oauth2client
cowpy
12 changes: 11 additions & 1 deletion userge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from userge.utils import Config, logging
# Copyright (C) 2020 by UsergeTeam@Telegram, < https://t.me/theUserge >.
#
# This file is part of < https://github.com/uaudith/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.


from userge.core import (
Userge, Filters, Message, get_collection)

from userge.utils import Config, logging


userge = Userge() # userge is the client name
9 changes: 9 additions & 0 deletions userge/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Copyright (C) 2020 by UsergeTeam@Telegram, < https://t.me/theUserge >.
#
# This file is part of < https://github.com/uaudith/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.


from userge import userge


Expand Down
9 changes: 9 additions & 0 deletions userge/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# Copyright (C) 2020 by UsergeTeam@Telegram, < https://t.me/theUserge >.
#
# This file is part of < https://github.com/uaudith/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.


from ._userge import Userge, Filters, Message
from ._database import get_collection
9 changes: 9 additions & 0 deletions userge/core/_database/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
# Copyright (C) 2020 by UsergeTeam@Telegram, < https://t.me/theUserge >.
#
# This file is part of < https://github.com/uaudith/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.


from .db import get_collection
9 changes: 9 additions & 0 deletions userge/core/_database/db.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Copyright (C) 2020 by UsergeTeam@Telegram, < https://t.me/theUserge >.
#
# This file is part of < https://github.com/uaudith/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.


from pymongo import MongoClient
from pymongo.collection import Collection
from userge.utils import Config, logging
Expand Down
9 changes: 9 additions & 0 deletions userge/core/_userge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# Copyright (C) 2020 by UsergeTeam@Telegram, < https://t.me/theUserge >.
#
# This file is part of < https://github.com/uaudith/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.


from .client import Userge, Filters
from .message import Message
41 changes: 36 additions & 5 deletions userge/core/_userge/base.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
from pyrogram import Client
# Copyright (C) 2020 by UsergeTeam@Telegram, < https://t.me/theUserge >.
#
# This file is part of < https://github.com/uaudith/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.


class Base(Client):
from pyrogram import Client, Message


class BaseMessage(Message):
"""
Base Class for Message.
"""

@property
def process_is_canceled(self) -> bool:
pass


class BaseCLogger:
"""
Base Class for CLogger.
"""

async def fwd_msg(self,
message: BaseMessage,
as_copy: bool = False,
remove_caption: bool = False) -> None:
pass


class BaseClient(Client):
"""
Base Class for Userge.
Base Class for Client.
"""

def getCLogger(self, name: str):
pass
def getCLogger(self, name: str) -> BaseCLogger:
pass
Loading

0 comments on commit 33016b0

Please sign in to comment.