Jishu Developer commited on
Commit
18d19a7
·
unverified ·
1 Parent(s): 0e29bd9

Update bot.py

Browse files
Files changed (1) hide show
  1. bot.py +0 -41
bot.py CHANGED
@@ -51,47 +51,6 @@ class Bot(Client):
51
  self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL}")
52
  self.LOGGER(__name__).info("\nBot Stopped. https://t.me/MadflixBots_Support for support")
53
  sys.exit()
54
- if FORCE_SUB_CHANNEL2:
55
- try:
56
- link = (await self.get_chat(FORCE_SUB_CHANNEL2)).invite_link
57
- if not link:
58
- await self.export_chat_invite_link(FORCE_SUB_CHANNEL2)
59
- link = (await self.get_chat(FORCE_SUB_CHANNEL2)).invite_link
60
- self.invitelink2 = link
61
- except Exception as a:
62
- self.LOGGER(__name__).warning(a)
63
- self.LOGGER(__name__).warning("Bot can't Export Invite link from Force Sub Channel!")
64
- self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL2 value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL2}")
65
- self.LOGGER(__name__).info("\nBot Stopped. https://t.me/MadflixBots_Support for support")
66
- sys.exit()
67
-
68
- if FORCE_SUB_CHANNEL3:
69
- try:
70
- link = (await self.get_chat(FORCE_SUB_CHANNEL3)).invite_link
71
- if not link:
72
- await self.export_chat_invite_link(FORCE_SUB_CHANNEL3)
73
- link = (await self.get_chat(FORCE_SUB_CHANNEL3)).invite_link
74
- self.invitelink3 = link
75
- except Exception as a:
76
- self.LOGGER(__name__).warning(a)
77
- self.LOGGER(__name__).warning("Bot can't Export Invite link from Force Sub Channel!")
78
- self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL3 value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL3}")
79
- self.LOGGER(__name__).info("\nBot Stopped. https://t.me/MadflixBots_Support for support")
80
- sys.exit()
81
-
82
- if FORCE_SUB_CHANNEL4:
83
- try:
84
- link = (await self.get_chat(FORCE_SUB_CHANNEL4)).invite_link
85
- if not link:
86
- await self.export_chat_invite_link(FORCE_SUB_CHANNEL4)
87
- link = (await self.get_chat(FORCE_SUB_CHANNEL4)).invite_link
88
- self.invitelink4 = link
89
- except Exception as a:
90
- self.LOGGER(__name__).warning(a)
91
- self.LOGGER(__name__).warning("Bot can't Export Invite link from Force Sub Channel!")
92
- self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL4 value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL4}")
93
- self.LOGGER(__name__).info("\nBot Stopped. https://t.me/MadflixBots_Support for support")
94
- sys.exit()
95
 
96
  try:
97
  db_channel = await self.get_chat(CHANNEL_ID)
 
51
  self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL}")
52
  self.LOGGER(__name__).info("\nBot Stopped. https://t.me/MadflixBots_Support for support")
53
  sys.exit()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
55
  try:
56
  db_channel = await self.get_chat(CHANNEL_ID)