Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Changelog

## v1.19.0 (2026-02-12)

- support API 9.4 (February 9, 2026 update)
- Bot Profile Management:
- Added `setMyProfilePhoto` and `removeMyProfilePhoto` methods
- Forum Topics in Private Chats:
- Added `allows_users_to_create_topics` field to User
- Added `is_name_implicit` field to ForumTopic and ForumTopicCreated
- Colored Buttons:
- Added `style` and `icon_custom_emoji_id` fields to KeyboardButton and InlineKeyboardButton
- Video Quality:
- Added VideoQuality type and `qualities` field to Video
- Chat Owner Events:
- Added ChatOwnerLeft and ChatOwnerChanged types
- Added `chat_owner_left` and `chat_owner_changed` fields to Message
- User Profile Audios:
- Added UserProfileAudios type and `getUserProfileAudios` method
- Added `first_profile_audio` field to ChatFullInfo
- Gifts:
- Added `rarity` field to UniqueGiftModel
- Added `is_burned` field to UniqueGift
- Miscellaneous:
- Added `repostStory` method
- Added UserRating type and `rating` field to ChatFullInfo
- Added `completed_by_chat` field to ChecklistTask
- Added `message_effect_id` to ForwardMessageParams and CopyMessageParams

## v1.18.0 (2026-01-23)

- support API 9.3 (December 31, 2025 update)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> [Telegram Group](https://t.me/gotelegrambotui)

> Supports Bot API version: [9.3](https://core.telegram.org/bots/api#december-31-2025) from December 31, 2025
> Supports Bot API version: [9.4](https://core.telegram.org/bots/api#february-9-2026) from February 9, 2026

It's a Go zero-dependencies telegram bot framework

Expand Down
2 changes: 1 addition & 1 deletion bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync"
"time"

"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot/models"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion bot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot/models"
)

type serverMock struct {
Expand Down
2 changes: 1 addition & 1 deletion build_request_form.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"reflect"
"strings"

"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot/models"
)

type inputMedia interface {
Expand Down
2 changes: 1 addition & 1 deletion build_request_form_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot/models"
)

func assertFormData(t *testing.T, data, expect string) {
Expand Down
4 changes: 2 additions & 2 deletions examples/command_handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, fix it

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check #254 please

"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/commands/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
6 changes: 3 additions & 3 deletions examples/create_new_sticker_set/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"os/signal"
"time"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down Expand Up @@ -50,7 +50,7 @@ func handler(ctx context.Context, b *bot.Bot, update *models.Update) {
fileContent, _ := images.ReadFile("images/telegram.png")

inputSticker1 := models.InputSticker{
Sticker: "https://github.com/go-telegram/bot/blob/main/examples/create_new_sticker_set/images/telegram.png?raw=true",
Sticker: "https://github.com/TGlimmer/gobot/blob/main/examples/create_new_sticker_set/images/telegram.png?raw=true",
Format: "static",
EmojiList: []string{"1️⃣"},
}
Expand Down
4 changes: 2 additions & 2 deletions examples/echo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/echo_with_webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/edit_message/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os/signal"
"time"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
2 changes: 1 addition & 1 deletion examples/getme/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/go-telegram/bot"
"github.com/TGlimmer/gobot"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/handler_match_func/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/inline_keyboard/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/inline_keyboard_multiselect/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send /select command to the bot to see the example in action.
Expand Down
4 changes: 2 additions & 2 deletions examples/inline_mode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Use inline mode @botname some_text
Expand Down
4 changes: 2 additions & 2 deletions examples/middleware/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os/signal"
"sync"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/payment/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Payments example
Expand Down
4 changes: 2 additions & 2 deletions examples/send_document/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/send_media_group/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/send_paid_media/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/send_photo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/send_photo_upload/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"os/signal"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// Send any text message to the bot after the bot has been started
Expand Down
4 changes: 2 additions & 2 deletions examples/streaming_draft/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os/signal"
"time"

"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot"
"github.com/TGlimmer/gobot/models"
)

// This example demonstrates how to use sendMessageDraft to stream
Expand Down
2 changes: 1 addition & 1 deletion get_updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync/atomic"
"time"

"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot/models"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/go-telegram/bot
module github.com/TGlimmer/gobot

go 1.18
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"regexp"
"strings"

"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot/models"
)

type HandlerType int
Expand Down
2 changes: 1 addition & 1 deletion handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"regexp"
"testing"

"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot/models"
)

func findHandler(b *Bot, id string) *handler {
Expand Down
30 changes: 29 additions & 1 deletion methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package bot
import (
"context"

"github.com/go-telegram/bot/models"
"github.com/TGlimmer/gobot/models"
)

// SetWebhook https://core.telegram.org/bots/api#setwebhook
Expand Down Expand Up @@ -1125,3 +1125,31 @@ func (b *Bot) SendMessageDraft(ctx context.Context, params *SendMessageDraftPara
err := b.rawRequest(ctx, "sendMessageDraft", params, &result)
return result, err
}

// RepostStory https://core.telegram.org/bots/api#repoststory
func (b *Bot) RepostStory(ctx context.Context, params *RepostStoryParams) (*models.Story, error) {
result := &models.Story{}
err := b.rawRequest(ctx, "repostStory", params, &result)
return result, err
}

// SetMyProfilePhoto https://core.telegram.org/bots/api#setmyprofilephoto
func (b *Bot) SetMyProfilePhoto(ctx context.Context, params *SetMyProfilePhotoParams) (bool, error) {
var result bool
err := b.rawRequest(ctx, "setMyProfilePhoto", params, &result)
return result, err
}

// RemoveMyProfilePhoto https://core.telegram.org/bots/api#removemyprofilephoto
func (b *Bot) RemoveMyProfilePhoto(ctx context.Context) (bool, error) {
var result bool
err := b.rawRequest(ctx, "removeMyProfilePhoto", nil, &result)
return result, err
}

// GetUserProfileAudios https://core.telegram.org/bots/api#getuserprofileaudios
func (b *Bot) GetUserProfileAudios(ctx context.Context, params *GetUserProfileAudiosParams) (*models.UserProfileAudios, error) {
result := &models.UserProfileAudios{}
err := b.rawRequest(ctx, "getUserProfileAudios", params, &result)
return result, err
}
Loading
Loading