forked from UsergeTeam/Userge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new methods to message class and updated the base class added copyright added memes.py -__-
- Loading branch information
Showing
61 changed files
with
2,015 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ selenium | |
google-api-python-client | ||
google-auth-httplib2 | ||
google-auth-oauthlib | ||
oauth2client | ||
oauth2client | ||
cowpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.