iamgojoof6eyes commited on
Commit
7ffcf4d
·
1 Parent(s): 1e560ad

Added comment tag

Browse files
Files changed (1) hide show
  1. Powers/utils/chat_type.py +4 -0
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: