- Create your bot with botfather
- Make you bot an admin of your channel
- Go to https://web.telegram.org
- Click on your channel
- Look at the URL and find the part that looks like
c12112121212_17878787878787878 - Remove the underscore and after
c12112121212
| { | |
| "API": { | |
| "HTTPHeaders": { | |
| "Access-Control-Allow-Methods": [ | |
| "PUT", | |
| "POST" | |
| ], | |
| "Access-Control-Allow-Origin": [ | |
| "http://xx.xx.xx.xx:5001", | |
| "http://localhost:3000", |
c12112121212_17878787878787878c12112121212| /******************************\ | |
| !!! คำเตือน โปรดระวัง !!! | |
| การใช้บอท มีความเสี่ยงที่จะถูกแบนได้ | |
| แนะนำให้สร้างบัญชีใหม่มาบอทโดยเฉพาะ | |
| \******************************/ | |
| class TLMBot { | |
| constructor(minWaitTime = 5000, maxWaitTime = 15000) { | |
| this.minWaitTime = minWaitTime; | |
| this.maxWaitTime = maxWaitTime; |
| # ============ Login SCB ======================== | |
| # To Use provide your username and password | |
| # chmod -R 777 login_scb.sh | |
| # ./login_scb.sh | |
| # Please provide your username and password on https://www.scbeasy.com/ | |
| username= | |
| password= | |
| # Please Specify Your cookie file (Any blank text file is OK.) |
| # ============ Login K-Bank ======================== | |
| # To Use provide your username and password | |
| # chmod -R 777 login_k-bank.sh | |
| # ./login_k-bank.sh | |
| # Please provide your username and password here | |
| # This is not the best choice to use this script. because your password is saved on your machine and transfer through script | |
| # Please consider K-Bank Open API instead https://apiportal.kasikornbank.com/open-api/ | |
| username= | |
| password= |