متدهای پشتیبانیشده
راهنماAPI کسبوکاری در حال حاضر از متدهای زیر پشتیبانی میکند:
نمونه ارسال پیام:
curl --request POST \ 'https://tapi.bale.ai/business/bot<TOKEN>/sendMessage' \ --header 'Content-Type: application/json' \ --data '{"chat_id": 123456789, "text": "سلام"}'
نمونه بازارسال پیام:
curl --request POST \ 'https://tapi.bale.ai/business/bot<TOKEN>/forwardMessage' \ --header 'Content-Type: application/json' \ --data '{"chat_id": 123456789, "message_id": 1234, "from_chat_id": 987654321}'
نمونه ارسال فایل:
curl --request POST \ 'https://tapi.bale.ai/business/bot<TOKEN>/sendPhoto' \ --header 'Content-Type: application/json' \ --data '{"chat_id": 123456789, "photo": "<FILE_ID>", "caption": "تصویر"}'