Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Update v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
natanimn committed Jul 4, 2024
1 parent 6862973 commit 922b100
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Lastly we start our bot by using `start()` which does not take any parameter and
**IMPORTANT: All handlers are handled in the order in which they were registered.**

## Types of Handlers
There are 18 types of updates to be handled
There are 22 types of updates to be handled

#### Message Handler
```java
Expand Down Expand Up @@ -196,11 +196,11 @@ bot.onEditedMessage((context, edited_message) -> {});
```
#### EditedChannelPost Handler
```java
bot.onEditedChannelPost((context, edited_c) -> {});
bot.onEditedChannelPost((context, edited_channel_post) -> {});
```
#### MyChatMember Handler
```java
bot.onMychatMember((context, my_chat) -> {});
bot.onMychatMember((context, chat_updated) -> {});
```
#### ChatMember Handler
```java
Expand All @@ -226,6 +226,23 @@ bot.onChatBoost((context, chat_boost) -> {});
```java
bot.onRemovedChatBoost((context, removed_chat_boost) -> {});
```
#### BusinessMessage Handler
```java
bot.onBusinessMessage((context, businnes_message) -> {});
```
#### BusinessConnection Handler
```java
bot.onBusinessConnection((context, business_connection) -> {});
```
#### EditedBusinessMessage Handler
```java
bot.onEditedBusinessMessage((context, edited_business_message) -> {});
```
#### DeletedBusinessMessage Handler
```java
bot.onDeletedBusinessMessage((context, deleted_business_message) -> {});
```

**If only callback class is passed to a handler, the filter class will return `true` by default**

```java
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>et.telebof</groupId>
<artifactId>telegrambot</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
<description>Easy and modern Java Telegram bot API</description>
<name>Telebof</name>
<packaging>jar</packaging>
Expand Down Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.12.0</version>
<version>5.0.0-alpha.12</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down

0 comments on commit 922b100

Please sign in to comment.