Skip to content

Commit

Permalink
feat: support telebot 3.2
Browse files Browse the repository at this point in the history
Merge pull request #23 from vitaliy-ukiru/feat/support-telebot-3.2
  • Loading branch information
vitaliy-ukiru authored Nov 23, 2023
2 parents 738f6ef + b2d0024 commit 8bef796
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/stretchr/testify v1.8.4
gopkg.in/telebot.v3 v3.1.4
gopkg.in/telebot.v3 v3.2.1
)

require (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ gopkg.in/telebot.v3 v3.1.3 h1:T+CTyOWpZMqp3ALHSweNgp1awQ9nMXdRAMpe/r6x9/s=
gopkg.in/telebot.v3 v3.1.3/go.mod h1:GJKwwWqp9nSkIVN51eRKU78aB5f5OnQuWdwiIZfPbko=
gopkg.in/telebot.v3 v3.1.4 h1:RMmN6FMKvh+j4sylImulZL1sgi7vMnCyD6NUsowkjK8=
gopkg.in/telebot.v3 v3.1.4/go.mod h1:GJKwwWqp9nSkIVN51eRKU78aB5f5OnQuWdwiIZfPbko=
gopkg.in/telebot.v3 v3.2.1 h1:3I4LohaAyJBiivGmkfB+CiVu7QFOWkuZ4+KHgO/G3rs=
gopkg.in/telebot.v3 v3.2.1/go.mod h1:GJKwwWqp9nSkIVN51eRKU78aB5f5OnQuWdwiIZfPbko=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
Expand Down
18 changes: 18 additions & 0 deletions internal/endpoint_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,30 @@ func endpointName(endpoint string) string {
return "OnChannelPost"
case tele.OnEditedChannelPost:
return "OnEditedChannelPost"
case tele.OnTopicCreated:
return "OnTopicCreated"
case tele.OnTopicReopened:
return "OnTopicReopened"
case tele.OnTopicClosed:
return "OnTopicClosed"
case tele.OnTopicEdited:
return "OnTopicEdited"
case tele.OnGeneralTopicHidden:
return "OnGeneralTopicHidden"
case tele.OnGeneralTopicUnhidden:
return "OnGeneralTopicUnhidden"
case tele.OnWriteAccessAllowed:
return "OnWriteAccessAllowed"
case tele.OnAddedToGroup:
return "OnAddedToGroup"
case tele.OnUserJoined:
return "OnUserJoined"
case tele.OnUserLeft:
return "OnUserLeft"
case tele.OnUserShared:
return "OnUserShared"
case tele.OnChatShared:
return "OnChatShared"
case tele.OnNewGroupTitle:
return "OnNewGroupTitle"
case tele.OnNewGroupPhoto:
Expand Down

0 comments on commit 8bef796

Please sign in to comment.