Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev authored Feb 17, 2024
2 parents ca66d87 + 6a7695e commit 6c851d2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/perform-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
Expand All @@ -175,7 +175,7 @@ jobs:
git pull
mvn package -Dmaven.test.skip
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.JAR }}
path: target/${{ env.JAR }}
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
find . -name "*.jar" -delete
run: sshpass -p "$PASSWORD" ssh -o StrictHostKeyChecking=no -o LogLevel=quiet "$USERNAME@$HOST" "$CMD"
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.JAR }}
- name: Upload to remote
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
TAG: v${{ needs.get-release-version.outputs.version }}
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.JAR }}
- name: Draft release
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
with:
tag: ${{ env.TAG }}
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ Spring Boot-based Java application to forward Reddit posts to Telegram channel.
cd target
```
* Or
download [executable JAR](https://github.com/yvasyliev/reddit-telegram-forwarder/releases/latest/download/reddit-telegram-forwarder-3.1.0.jar)
download [executable JAR](https://github.com/yvasyliev/reddit-telegram-forwarder/releases/latest/download/reddit-telegram-forwarder-3.2.0.jar)
from the [latest release](https://github.com/yvasyliev/reddit-telegram-forwarder/releases/latest).
4. Run the app:
```shell
java -jar reddit-telegram-forwarder-3.1.0.jar \
java -jar reddit-telegram-forwarder-3.2.0.jar \
--reddit.client.id=${REDDIT_CLIENT_ID} \
--reddit.client.secret=${REDDIT_CLIENT_SECRET} \
--reddit.password=${REDDIT_PASSWORD} \
Expand Down Expand Up @@ -86,11 +86,11 @@ for more details).
| `reddit.password` | `true` | - | Reddit profile password. | `ETD1fqx%cfk6odj#boj` |
| `reddit.subreddit` | `true` | - | Subreddit name without `r/` prefix. | `cats` |
| `reddit.username` | `true` | - | Reddit profile username. | `RedditProfileUsername000` |
| `telegram.admin.id` | `true` | - | Telegram user ID (Telegram channel admin ID). Bot will send error logs directly to user. <ul><li>[How to find your User ID in Telegram?](https://www.google.com/search?q=How+to+find+your+User+ID+in+Telegram%3F)</li></ul> | `280538130` |
| `telegram.admin.id` | `true` | - | Telegram user ID (Telegram channel admin ID). Bot will send error logs directly to user. <ul><li>[How to find your User ID in Telegram?](https://www.google.com/search?q=How+to+find+your+User+ID+in+Telegram%3F)</li></ul> | `28053.2.0` |
| `telegram.bot.username` | `true` | - | Telegram bot username. | `SubredditForwarderBot` |
| `telegram.bot.token` | `true` | - | Telegram bot token. | `4336854599:BBFqVLRq9ixVdxORFWQgaSywzCfRo5-tBus` |
| `telegram.channel.id` | `true` | - | Telegram channel ID. Subreddit posts will be sent to this channel. <ul><li>[How to get the channel ID](https://gist.github.com/mraaroncruz/e76d19f7d61d59419002db54030ebe35#new-improved-next-steps)</li></ul> | `-1001572613876` or `@SubredditPostChannel` |
| `telegram.chat.id` | `true` | - | The ID of the chat where users can leave comments under posts. Bot will send additional photos to this chat if orginal subreddit post contains more than 10 images. <ul><li>[How to get chat ID](https://stackoverflow.com/a/69302407/21234935)</li></ul> | `-1003810089009` or `@SubbredditPostChannelChat` |
| `telegram.chat.id` | `true` | - | The ID of the chat where users can leave comments under posts. Bot will send additional photos to this chat if orginal subreddit post contains more than 10 images. <ul><li>[How to get chat ID](https://stackoverflow.com/a/69302407/21234935)</li></ul> | `-1003.2.089009` or `@SubbredditPostChannelChat` |
| `telegram.schedule.posting.delay.in.minutes` | `false` | `1` | How often (in minutes) the application should scan subreddit for new posts. | `5` |
| `telegram.schedule.posting.enabled` | `false` | `true` | Should application start forwarding right after startup or not. Can be paused/resumed via [Bot commands](#bot-commands). | `false` |

Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.5</version>
<version>3.2.2</version>
</parent>

<groupId>com.github.yvasyliev</groupId>
<artifactId>reddit-telegram-forwarder</artifactId>
<version>3.1.1</version>
<version>3.2.1</version>

<properties>
<java.version>21</java.version>
Expand Down Expand Up @@ -74,17 +74,17 @@
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.15.4</version>
<version>1.17.2</version>
</dependency>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.44.1.0</version>
<version>3.45.0.0</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-community-dialects</artifactId>
<version>6.3.1.Final</version>
<version>6.4.2.Final</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit 6c851d2

Please sign in to comment.