2from pyrogram import filters
3import requests
4import logging
5from userbot.utils.misc import modules_help, prefix 6
7
8dsfw = [
1from userbot import app
2from pyrogram import filters
3from userbot.utils.misc import modules_help, prefix 4
5# get group id and send it to message
6@app.on_message(filters.command("id", prefix) & filters.me)
Imports for the same package are scattered and not grouped together. It is recommended to keep the imports from the same package together. It makes the code easier to read.
Not preferred:
import os
import sys
from os import listdir
import time
from os.path import isfile, join
Preferred:
import os
from os import listdir
from os.path import isfile, join
import sys
import time