متدهای پشتیبانی‌شده

راهنما

API کسب‌وکاری در حال حاضر از متدهای زیر پشتیبانی می‌کند:

getMe

sendMessage

forwardMessage

sendPhoto

sendVideo

sendAudio

sendDocument

نمونه ارسال پیام:

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": "تصویر"}'

متدهای پشتیبانی‌شده (API بله) | ایران ناتیفیکیشن