import asyncio import sys from aiogram import Bot, Dispatcher, types, F, Router from aiogram.filters import CommandStart, Command from aiogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton, ReplyKeyboardMarkup, KeyboardButton import json from busines import * TOKEN = 'токен' bot = Bot(TOKEN) dp = Dispatcher() main_router = Router() @main_router.message(CommandStart()) async def command_start_handler(message: Message) -> None: print(message.business_connection_id) Python import asyncio import sys from aiogram import Bot, Dispatcher, types, F, Router from aiogram.filters import CommandStart, Command from aiogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton, ReplyKeyboardMarkup, KeyboardButton import json from busines import * TOKEN = 'токен' bot = Bot(TOKEN) dp = Dispatcher() main_router = Router() @main_router.message(CommandStart()) async def command_start_handler(message: Message) -> None: print(message.business_connection_id) выводит None хотя все подключено, работал кто? что делать
business_connection_id доступен только для соо полученных от бизнес акков а еще для получения business_connection_id над использовать метод dp.business_message() а не прост месседж хандлер