text: from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
  
  from configs import config
  from database.lang_utils import get_message as gm
  
  
  def music_or_video_keyboard(user_id: int, streaming_status: str):
      keyboard = []
      number = ["1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣"]
      for count, j in enumerate(number):
          keyboard.append(
              InlineKeyboardButton(
                  f"{j}", callback_data=f"{streaming_status} {count}|{user_id}"
              )
          )
      return keyboard
  
  
  def process_button(user_id: int, streaming_status: str):
      board = music_or_video_keyboard(user_id, streaming_status)
      temp = []
      keyboard = []
      for count, button in enumerate(board, start=1):
          temp.append(button)
          if count % 3 == 0:
              keyboard.append(temp)
              temp = []
          if count == len(board):
              keyboard.append(temp)
      return keyboard
  
  
  def start_markup(chat_id: int, bot_username: str):
      return InlineKeyboardMarkup(
          [
              [
                  InlineKeyboardButton(
                      gm(chat_id, "add_to_chat"),
                      url=f"https://t.me/{bot_username}?startgroup=true",
                  )
              ],
              [
                  InlineKeyboardButton(gm(chat_id, "helpbutton"), callback_data="cbhelp"),
                  InlineKeyboardButton(
                      gm(chat_id, "maintainer"), url="https://t.me/SpotifyBotsss"
                  ),
              ],
              [
                  InlineKeyboardButton(gm(chat_id, "channel"), url=config.CHANNEL_LINK),
                  InlineKeyboardButton(
                      gm(chat_id, "group_support"), url=config.GROUP_LINK
                  ),
              ],
              [
                  InlineKeyboardButton(
                      gm(chat_id, "source_code"),
                      url="https://t.me/spofitypromusicasistan",
                  )
              ],
          ]
      )
  