Deploy API#
Visit Gist and get all the code from it.
Note that this API Worker script is modified based on ChenYFan's work and includes the functionalities needed for this project. Please do not change the script content arbitrarily.
The API of TGTalker-Frontend V2 is not compatible with V1.
Go to the Cloudflare Dashboard.
Select Create Application -> Create Worker -> Modify Name (Deployment) -> Edit Code.
Paste all the code you copied into it, and change ChannelName to your channel name, deploy, and access the Worker to see if it returns content correctly.
Then you can bind a domain name to your Worker.
Save, and then fill in the domain name you bound into the api item in the configuration.