-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
35 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
) | ||
|
||
|
||
async def main(): | ||
async def main() -> None: | ||
await client.start() | ||
|
||
# Saving commit number | ||
|
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,6 +1,8 @@ | ||
# SPDX-License-Identifier: MIT | ||
# Copyright (c) 2018-2021 Amano Team | ||
|
||
from typing import List | ||
|
||
from .database_handler import db, dbc | ||
|
||
_all__ = ["db", "dbc"] | ||
__all__: List[str] = ["db", "dbc"] |
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
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
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,20 +1,24 @@ | ||
# SPDX-License-Identifier: MIT | ||
# Copyright (c) 2018-2021 Amano Team | ||
|
||
from typing import List | ||
|
||
import httpx | ||
|
||
group_types = ("group", "supergroup") | ||
group_types: List[str] = ("group", "supergroup") | ||
|
||
admin_status: List[str] = ["creator", "administrator"] | ||
|
||
timeout = httpx.Timeout(40, pool=None) | ||
|
||
http = httpx.AsyncClient(http2=True, timeout=timeout) | ||
|
||
|
||
class Permissions: | ||
can_be_edited = "can_be_edited" | ||
delete_messages = "can_delete_messages" | ||
restrict_members = "can_restrict_members" | ||
promote_members = "can_promote_members" | ||
change_info = "can_change_info" | ||
invite_users = "can_invite_users" | ||
pin_messages = "can_pin_messages" | ||
can_be_edited: str = "can_be_edited" | ||
delete_messages: str = "can_delete_messages" | ||
restrict_members: str = "can_restrict_members" | ||
promote_members: str = "can_promote_members" | ||
change_info: str = "can_change_info" | ||
invite_users: str = "can_invite_users" | ||
pin_messages: str = "can_pin_messages" |
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