Skip to content

Commit

Permalink
Release Version v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
xireiki committed Feb 22, 2024
1 parent 4a14b37 commit c649e4c
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 45 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/Test-Post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ jobs:
- name: Test Post Document
uses: ./
with:
CHAT_ID: ${{ secrets.CHAT_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
chat_id: ${{ secrets.CHAT_ID }}
bot_token: ${{ secrets.BOT_TOKEN }}
path: ${{ steps.set-post-info.outputs.path }}
CONTEXT: ${{ steps.set-post-info.outputs.CONTEXT }}
PARSE_MODE: HTML
context: ${{ steps.set-post-info.outputs.CONTEXT }}
parse_mode: HTML

- name: Test Post MediaGroup
uses: ./
with:
CHAT_ID: ${{ secrets.CHAT_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
chat_id: ${{ secrets.CHAT_ID }}
bot_token: ${{ secrets.BOT_TOKEN }}
path: |
test/*.png
CONTEXT: "**Test sendMediaGroup**"
PARSE_MODE: Markdown
METHOD: sendMediaGroup
context: "**Test sendMediaGroup**"
parse_mode: Markdown
method: sendMediaGroup

- name: Generate large files
run: |
Expand All @@ -54,11 +54,11 @@ jobs:
- name: Test Post Large File
uses: ./
with:
CHAT_ID: ${{ secrets.CHAT_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CONTEXT: "**All tests completed**"
PARSE_MODE: MarkdownV2
METHOD: sendFile
chat_id: ${{ secrets.CHAT_ID }}
bot_token: ${{ secrets.BOT_TOKEN }}
context: "**All tests completed**"
parse_mode: MarkdownV2
method: sendFile
path: "*.img"
large_file: true
api_id: ${{ secrets.API_ID }}
Expand All @@ -67,8 +67,8 @@ jobs:
- name: Test Post Text
uses: ./
with:
CHAT_ID: ${{ secrets.CHAT_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CONTEXT: "**All tests completed**"
PARSE_MODE: MarkdownV2
METHOD: sendMessage
chat_id: ${{ secrets.CHAT_ID }}
bot_token: ${{ secrets.BOT_TOKEN }}
context: "**All tests completed**"
parse_mode: MarkdownV2
method: sendMessage
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,53 +51,53 @@ steps:
- uses: xireiki/channel-post@v1
name: Post File
with:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}
CONTEXT: "An example"
bot_token: ${{ secrets.BOT_TOKEN }}
chat_id: ${{ secrets.CHAT_ID }}
context: "An example"
path: example.zip

# example 2
- uses: xireiki/channel-post@v1
name: Post File
with:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}
CONTEXT: "An <i>example</i>"
bot_token: ${{ secrets.BOT_TOKEN }}
chat_id: ${{ secrets.CHAT_ID }}
context: "An <i>example</i>"
path: example.zip
PARSE_MODE: HTML # Optional
METHOD: sendDocument
parse_mode: HTML # Optional
method: sendDocument

# example 3
- uses: xireiki/channel-post@v1
name: Post Files
with:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}
CONTEXT: "An example"
bot_token: ${{ secrets.BOT_TOKEN }}
chat_id: ${{ secrets.CHAT_ID }}
context: "An example"
path: *.zip
PARSE_MODE: None # Optional
METHOD: sendFile
parse_mode: None # Optional
method: sendFile

# example 4
- uses: xireiki/channel-post@v1
name: Post MediaGroup
with:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}
CONTEXT: "An **example**"
bot_token: ${{ secrets.BOT_TOKEN }}
chat_id: ${{ secrets.CHAT_ID }}
context: "An **example**"
path: |
test/c.txt
test/d.zip
PARSE_MODE: Markdown # Optional
METHOD: sendMediaGroup
parse_mode: Markdown # Optional
method: sendMediaGroup

# example 5
- uses: xireiki/channel-post@v1
name: Post Text
with:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}
CONTEXT: "An **example**"
PARSE_MODE: MarkdownV2 # Optional
METHOD: sendMessage
bot_token: ${{ secrets.BOT_TOKEN }}
chat_id: ${{ secrets.CHAT_ID }}
context: "An **example**"
parse_mode: MarkdownV2 # Optional
method: sendMessage
```
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "channel-post",
"version": "1.0.6",
"version": "1.0.7",
"description": "Telegram Chennel/Chat Post",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c649e4c

Please sign in to comment.