Try using this telegram bot https://t.me/yuandrk_bot
This simple Go-based Telegram bot allows you to capture incoming messages and log them into a CSV file. Useful for logging or archiving conversations and messages received on Telegram.
Example: Used for write data from Apple Shortcuts
This document outlines the CI/CD process configured via GitHub Workflows. The workflow is divided into two main stages: Continuous Integration (CI) and Continuous Deployment (CD).
The CI process includes the following steps:
-
Action CheckOut:
- Description: Checks out the source code for the workflow.
-
Run Tests:
- Description: Executes the predefined tests to ensure code reliability and stability.
-
Login to GHCR.io (GitHub Container Registry):
- Description: Authenticates to GitHub Container Registry to enable subsequent image push.
-
Build and Push Docker Image:
- Description: Builds the Docker image and pushes it to GitHub Container Registry.
- Registry: GHCR.io
-
Clean:
- Description: Performs cleanup operations post-build and push.
The CD process encompasses the following steps:
-
Save Tag and Revision to $GITHUB_ENV:
- Description: Captures and saves the image tag and revision information to the GitHub environment variables ($GITHUB_ENV).
-
Update Image Tag in values.yaml:
- Description: Updates the
image.tag
field in thevalues.yaml
file with the new image tag. - File:
values.yaml
- Description: Updates the
-
Commit Changes and Push:
- Description: Commits the changes made to the
values.yaml
file and pushes them to the repository. - Note: This step finalizes the deployment process.
- Description: Commits the changes made to the
- Go (Golang) installed on your system
- Git for cloning the repository
- Telegram account for creating a bot and obtaining API token
- Clone this repository by running the following command in your terminal:
$ git clone [email protected]:andriuk/sbot.git
- Create your own Telegram bot:
- Go to BotFather on Telegram.
- Use the
/newbot
command to create a new bot and follow the instructions to get the API token.
Here you go make file which help you build go program doc in processing
- Store your Telegram bot API token in an environment variable:
- Use the command below to set the API token as an environment variable. Replace
<YOUR_API_TOKEN>
with the obtained token.
For more secure use command below:
$ read -s TELE_TOKEN
Paste your API token
$ export $TELE_TOKEN
- Run the bot using the following command:
$ ./sbot start
- Interact with your Telegram bot by sending messages to log them in the CSV file.
If you have any questions or need assistance, feel free to create an issue in this repository. We're here to help!