Initial import
This commit is contained in:
11
one-api/application/controllers/tgram/t02.txt
Normal file
11
one-api/application/controllers/tgram/t02.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
curl -i -X GET https://api.telegram.org/bot858743704:AAGplPB1cwWmzAu37VMwiTFifWFCsJKIH10/getMe
|
||||
curl -i -X GET https://api.telegram.org/bot858743704:AAGplPB1cwWmzAu37VMwiTFifWFCsJKIH10/getUpdates
|
||||
|
||||
|
||||
curl -X POST \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"chat_id": "470554436", "text": "This is a test from curl", "disable_notification": true}' \
|
||||
https://api.telegram.org/bot858743704:AAGplPB1cwWmzAu37VMwiTFifWFCsJKIH10/sendMessage
|
||||
|
||||
|
||||
curl -F chat_id="470554436" -F document=@"./sample.pdf" -F caption="Test Attachment" https://api.telegram.org/bot858743704:AAGplPB1cwWmzAu37VMwiTFifWFCsJKIH10/sendDocument
|
||||
Reference in New Issue
Block a user