MCPcopy Create free account

hub / github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot / functions

Functions9,434 in github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot

↓ 4,801 callersMethodget
Get current tax information. Maps to PHP Tax::get(). Returns: Dictionary with current tax data Raises:
app/lib/nalogo/tax.py:26
↓ 2,211 callersMethodt
(self, key: str, default: Any = None)
app/localization/texts.py:176
↓ 1,601 callersMethodexecute
(self, query)
tests/test_miniapp_payments.py:1225
↓ 1,454 callersMethodnow
Create AtomDateTime with current Moscow time.
app/lib/nalogo/dto/income.py:65
↓ 1,153 callersMethodwarning
(self, message: str)
app/utils/startup_timeline.py:88
↓ 832 callersFunctionget_texts
(language: str = DEFAULT_LANGUAGE)
app/localization/texts.py:222
↓ 747 callersMethodcommit
(self)
tests/test_miniapp_payments.py:680
↓ 582 callersMethodrefresh
Refresh access token using refresh token.
app/lib/nalogo/_http.py:24
↓ 574 callersMethodget
(self, task_id: str)
app/webapi/background/backup_tasks.py:52
↓ 561 callersMethodformat_price
(kopeks: int, round_kopeks: bool | None = None)
app/localization/texts.py:204
↓ 429 callersMethodall
(self)
tests/services/test_payment_service_webhooks.py:94
↓ 406 callersMethodscalars
(self)
tests/services/test_payment_service_webhooks.py:105
↓ 345 callersFunctionrequire_permission
FastAPI dependency factory for RBAC permission checks. Usage:: @router.get("/users", dependencies=[Depends(require_permission("user
app/cabinet/dependencies.py:338
↓ 343 callersMethodis_multi_tariff_enabled
Проверяет, включен ли мультитарифный режим.
app/config.py:2109
↓ 317 callersMethodscalar_one_or_none
(self)
tests/test_miniapp_payments.py:1218
↓ 292 callersMethodscalar
(self)
tests/services/test_payment_service_webhooks.py:72
↓ 279 callersFunction_t
Helper for localized button labels with fallbacks.
app/keyboards/admin.py:8
↓ 234 callersMethodlabel
(self, lang_code: str)
app/handlers/admin/pricing.py:49
↓ 233 callersMethodadd
(self, obj: Any)
tests/services/test_payment_service_heleket.py:33
↓ 211 callersMethodflush
Сбросить буфер файлового хэндлера.
app/utils/log_handlers.py:56
↓ 183 callersMethodrollback
(self)
app/services/remnawave_service.py:133
↓ 171 callersFunctionget_tariff_by_id
Получает тариф по ID.
app/database/crud/tariff.py:56
↓ 158 callersFunctionget_user_by_id
(db: AsyncSession, user_id: int)
app/database/crud/user.py:90
↓ 140 callersFunctionget_back_keyboard
(language: str = DEFAULT_LANGUAGE, callback_data: str = 'back_to_menu')
app/keyboards/inline.py:1011
↓ 136 callersFunction_format_user_id
Format user identifier for logging (supports email-only users).
app/services/subscription_auto_purchase_service.py:43
↓ 124 callersMethodtext
(self)
tests/services/test_lava_service.py:56
↓ 104 callersMethodsend_message
(self, **kwargs)
tests/services/test_payment_common.py:28
↓ 103 callersFunctionformat_price_kopeks
Форматирует цену из копеек в рубли.
app/utils/formatting.py:26
↓ 101 callersMethodget_api_client
(self)
app/services/remnawave_service.py:243
↓ 93 callersMethoddelete
(self, key: str)
app/utils/cache.py:106
↓ 78 callersFunction_make_user
( *, id: int = 1, telegram_id: int | None = None, email: str | None = None, email_verified
tests/services/test_account_merge_service.py:24
↓ 76 callersMethodupdate
Update only provided fields. Rejects unknown/non-updatable keys.
app/database/crud/rbac.py:97
↓ 74 callersMethodget
(self, key: str)
app/utils/cache.py:38
↓ 71 callersMethod_make_request
( self, method: str, endpoint: str, data: dict | None = None, params: dict | None = None )
app/external/remnawave_api.py:375
↓ 70 callersMethodkeys
(self, pattern='*')
tests/conftest.py:66
↓ 66 callersFunctioncreate_transaction
( db: AsyncSession, user_id: int, type: TransactionType, amount_kopeks: int, description:
app/database/crud/transaction.py:66
↓ 66 callersMethodjson
Get receipt data in JSON format. Maps to PHP Receipt::json() method. Args: receipt_uuid: Receipt UUID
app/lib/nalogo/receipt.py:50
↓ 65 callersFunctionget_user_by_telegram_id
(db: AsyncSession, telegram_id: int)
app/database/crud/user.py:114
↓ 65 callersMethodupdate_remnawave_user
( self, db: AsyncSession, subscription: Subscription, *, reset_traffic
app/services/subscription_service.py:408
↓ 64 callersFunction_build_record
( method: PaymentMethod, payment: Any, *, identifier: str, amount_kopeks: int, status:
app/services/payment_verification_service.py:534
↓ 60 callersFunctionformat_local_datetime
Format a datetime value in the configured local timezone.
app/utils/timezone.py:64
↓ 58 callersMethodscalar_one
(self)
tests/services/test_payment_service_webhooks.py:84
↓ 57 callersFunctionsubtract_user_balance
( db: AsyncSession, user: User, amount_kopeks: int, description: str, create_transaction:
app/database/crud/user.py:638
↓ 56 callersMethod_get_cabinet_button
Get cabinet link button HTML.
app/cabinet/services/email_templates.py:219
↓ 55 callersFunctionlock_user_for_pricing
Lock user row with FOR UPDATE and return refreshed instance. Call BEFORE computing prices that depend on promo offer state to prevent TOCTOU
app/database/crud/user.py:617
↓ 54 callersMethodcreate_remnawave_user
( self, db: AsyncSession, subscription: Subscription, *, reset_traffic
app/services/subscription_service.py:156
↓ 52 callersMethodget
(self, url: str, headers: dict | None = None, timeout: float | None = None)
tests/services/test_overpay_service.py:32
↓ 52 callersFunctionget_subscription_by_user_id
Get primary subscription for user. Returns the first active/trial subscription, or the most recently created one. Multi-tariff compatible: pr
app/database/crud/subscription.py:119
↓ 51 callersFunctioncreate_bot
Create a Bot instance with SOCKS5 proxy and/or custom Telegram API server.
app/bot_factory.py:10
↓ 51 callersFunctionformat_datetime
(dt: datetime | str, format_str: str = '%d.%m.%Y %H:%M')
app/utils/formatters.py:4
↓ 50 callersFunctionadd_user_balance
( db: AsyncSession, user: User, amount_kopeks: int, description: str = 'Пополнение баланса',
app/database/crud/user.py:509
↓ 50 callersMethodclose
(self)
app/services/lava_service.py:95
↓ 49 callersMethodapply_discount
Apply percentage discount with integer arithmetic. Clamps percent to [0, 100]. Uses floor division.
app/services/pricing_engine.py:105
↓ 49 callersMethodis_tariffs_mode
Проверяет, включен ли режим продаж 'Тарифы'.
app/config.py:2117
↓ 49 callersMethodmodel_dump
Return the raw data dictionary.
app/lib/nalogo/dto/tax.py:21
↓ 49 callersMethodregister_handlers
Зарегистрировать хэндлеры для управления при ротации.
app/services/log_rotation_service.py:75
↓ 48 callersMethodbegin_nested
(self)
tests/external/test_apple_iap.py:268
↓ 46 callersMethodfirst
(self)
tests/services/test_payment_service_webhooks.py:90
↓ 46 callersFunctionget_active_subscriptions_by_user_id
Get all active/trial/limited subscriptions for a user. Includes LIMITED status because those subscriptions still have time remaining (just ra
app/database/crud/subscription.py:2673
↓ 46 callersMethodget_primary_promo_group
Возвращает промогруппу с максимальным приоритетом.
app/database/models.py:2046
↓ 46 callersMethodget_support_contact_url
(self)
app/config.py:3229
↓ 45 callersMethodexists
(self, key: str)
app/utils/cache.py:132
↓ 45 callersFunctionget_subscription_by_id_for_user
Get subscription by ID with ownership check (IDOR protection).
app/database/crud/subscription.py:2695
↓ 44 callersFunction_escape_like
Escape LIKE/ILIKE wildcard characters to prevent pattern injection.
app/services/payment_search_service.py:69
↓ 43 callersFunction_build_callback
(method: str)
app/keyboards/inline.py:1629
↓ 43 callersMethodget_balance_payment_description
( self, amount_kopeks: int, telegram_user_id: int | None = None, user_db_id: int | None = None )
app/config.py:2986
↓ 43 callersMethodis_admin
Проверяет, является ли пользователь администратором
app/services/blacklist_service.py:51
↓ 42 callersFunctionformat_bytes
(bytes_value: int)
app/utils/formatters.py:117
↓ 42 callersMethodset
(self, key: str, value: Any, expire: int | timedelta = None)
app/utils/cache.py:51
↓ 41 callersFunction_make_db
()
tests/services/test_account_merge_service.py:133
↓ 41 callersMethodget_discount_percent
(self, category: str, period_days: int | None = None)
app/database/models.py:1628
↓ 39 callersMethodcalculate_renewal_price
Calculate renewal price for a subscription. Routes to tariff mode (subscription has a tariff) or classic mode (legacy env-based prici
app/services/pricing_engine.py:502
↓ 39 callersFunctionexecute_merge
Выполняет атомарный мерж двух аккаунтов. Caller отвечает за commit/rollback. Переносит все данные с secondary на primary, помечает secondary как
app/services/account_merge_service.py:532
↓ 39 callersFunctionget_all_server_squads
( db: AsyncSession, available_only: bool = False, page: int = 1, limit: int = 50 )
app/database/crud/server_squad.py:115
↓ 39 callersMethodis_devices_selection_enabled
(self)
app/config.py:2082
↓ 39 callersMethodpost
POST request with JSON data.
app/lib/nalogo/_http.py:155
↓ 37 callersFunctioncache_key
(*parts)
app/utils/cache.py:266
↓ 35 callersFunctionget_campaign_by_id
(db: AsyncSession, campaign_id: int)
app/database/crud/campaign.py:72
↓ 33 callersMethod_make_request
( self, method: str, endpoint: str, data: dict | None = None, )
app/external/cryptobot.py:20
↓ 33 callersFunctionget_setting_value
Get a setting value from database.
app/database/crud/system_setting.py:28
↓ 33 callersFunctionlock_user_for_update
Lock user row with SELECT FOR UPDATE to prevent concurrent balance modifications. Returns the refreshed user object with current DB values. M
app/database/crud/user.py:487
↓ 33 callersMethodlog
(self, message: str, icon: str = '•')
app/utils/startup_timeline.py:106
↓ 32 callersFunction_patch_remnawave_delete
()
tests/services/test_account_merge_service.py:333
↓ 32 callersFunctionget_server_squad_by_id
(db: AsyncSession, server_id: int)
app/database/crud/server_squad.py:108
↓ 32 callersMethodis_moderator
(cls, telegram_id: int)
app/services/support_settings_service.py:190
↓ 31 callersMethodis_cryptobot_enabled
(self)
app/config.py:2175
↓ 31 callersMethodset_value
( cls, db: AsyncSession, key: str, value: Any, *, force: bool
app/services/system_settings_service.py:1764
↓ 30 callersMethod_get_base_template
Wrap content in base HTML template.
app/cabinet/services/email_templates.py:111
↓ 30 callersFunction_get_service
Get RemnaWave service instance.
app/cabinet/routes/admin_remnawave.py:94
↓ 30 callersFunctionbuild_miniapp_or_callback_button
Create a button that opens the cabinet miniapp or falls back to a callback. In cabinet menu mode, if ``MINIAPP_CUSTOM_URL`` is configured the but
app/utils/miniapp_buttons.py:174
↓ 30 callersMethodget_mulenpay_display_name
(self)
app/config.py:2197
↓ 30 callersMethodsave_user_cart
Сохранить корзину пользователя в Redis. When ``cart_data`` contains a ``subscription_id``, the data is **also** written to t
app/services/user_cart_service.py:41
↓ 29 callersFunction_ensure_configured
Ensure RemnaWave is configured.
app/cabinet/routes/admin_remnawave.py:104
↓ 29 callersFunctionextend_subscription
Продлевает подписку на указанное количество дней. Args: db: Сессия базы данных subscription: Подписка для продления days:
app/database/crud/subscription.py:867
↓ 29 callersMethodis_yookassa_enabled
(self)
app/config.py:2155
↓ 28 callersFunctionapply_percentage_discount
Apply percentage discount using PricingEngine's floor division. Returns (discounted_amount, discount_value).
app/utils/pricing_utils.py:47
↓ 28 callersFunctionemit_transaction_side_effects
Fire side-effects that were deferred when create_transaction(commit=False) was used. Call this AFTER db.commit() to emit events and run promo che
app/database/crud/transaction.py:178
↓ 28 callersFunctionformat_email_datetime
Format a datetime for email-template substitution. Replaces the historical ``str(datetime)`` calls in ``notification_delivery_service`` which
app/utils/timezone.py:77
↓ 28 callersMethodformat_traffic
Format traffic value. Args: gb: Traffic in gigabytes is_limit: If True, 0 means unlimited. If False, 0 means zero use
app/localization/texts.py:208
↓ 28 callersFunctionget_promo_offer_template_by_id
(db: AsyncSession, template_id: int)
app/database/crud/promo_offer_template.py:161
next →1–100 of 9,434, ranked by callers