Spaces:
Paused
Paused
iamgojoof6eyes
commited on
Commit
·
1b80a3b
1
Parent(s):
f8af1ca
Added comment tag
Browse files
Powers/utils/chat_type.py
CHANGED
|
@@ -6,6 +6,8 @@ from pyrogram.types import Message
|
|
| 6 |
|
| 7 |
|
| 8 |
async def chattype(m: Message):
|
|
|
|
|
|
|
| 9 |
if bool(m.chat and m.chat.type in {ChatType.CHANNEL}):
|
| 10 |
ct = "channel"
|
| 11 |
|
|
@@ -25,6 +27,8 @@ async def chattype(m: Message):
|
|
| 25 |
return ct
|
| 26 |
|
| 27 |
async def c_type(chat_id):
|
|
|
|
|
|
|
| 28 |
c = Gojo.get_chat(chat_id)
|
| 29 |
|
| 30 |
if c.type == ChatType.BOT:
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
async def chattype(m: Message):
|
| 9 |
+
# To get chat type with message
|
| 10 |
+
|
| 11 |
if bool(m.chat and m.chat.type in {ChatType.CHANNEL}):
|
| 12 |
ct = "channel"
|
| 13 |
|
|
|
|
| 27 |
return ct
|
| 28 |
|
| 29 |
async def c_type(chat_id):
|
| 30 |
+
# To get chat type with chat id
|
| 31 |
+
|
| 32 |
c = Gojo.get_chat(chat_id)
|
| 33 |
|
| 34 |
if c.type == ChatType.BOT:
|