# Path: modules/utils/http.py
# async def pre_send(bot, chat_id: Optional[str]=None, action: str='typing') -> None:
# async def send(bot, chat_id: Optional[str]=None, text: Optional[str]=None, data: dict={}) -> None:
# async def call(bot, method_name: str, http_method: str, **kwargs):
# async def perform_request(url, method, params={}):


import json
import random
import sys
import re
from modules.utils import http



async def main(bot, *args, **kwargs):
    """
    bm
    Random news from http://breakingmad.me/
    """
    news_id = random.randint(3,9524)
    try:

# Path: modules/utils/http.py
# async def pre_send(bot, chat_id: Optional[str]=None, action: str='typing') -> None:
# async def send(bot, chat_id: Optional[str]=None, text: Optional[str]=None, data: dict={}) -> None:
# async def call(bot, method_name: str, http_method: str, **kwargs):
# async def perform_request(url, method, params={}):


# Path: modules/user_bm.py
import json
import random
import sys
import re
from modules.utils import http




async def main(bot, *args, **kwargs):
    """
    bm
    Random news from http://breakingmad.me/
    """
    news_id = random.randint(3,9524)
    try:

        response_body = await http.perform_request("http://breakingmad.me/ru/{}.json".format(news_id), 'GET')