MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / extract_btn

Function extract_btn

plugins/settings.py:531–545  ·  view source on GitHub ↗
(datas)

Source from the content-addressed store, hash-verified

529# Ask Doubt on telegram @KingVJ01
530
531def extract_btn(datas):
532 i = 0
533 btn = []
534 if datas:
535 for data in datas:
536 if i >= 3:
537 i = 0
538 if i == 0:
539 btn.append([InlineKeyboardButton(data, f'settings#alert_{data}')])
540 i += 1
541 continue
542 elif i > 0:
543 btn[-1].append(InlineKeyboardButton(data, f'settings#alert_{data}'))
544 i += 1
545 return btn
546
547# Don't Remove Credit Tg - @VJ_Botz
548# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected