Skip to content

Tags: enetx/tg

Tags

v1.0.3

Toggle v1.0.3's commit message
api v10.2

Bump enetx/g to v1.1.1 and gotgbot to rc.36, then bring the engine up to
Telegram Bot API 10.2.

enetx/g v1.1.1:
- File/Dir moved to the fs subpackage
- Split/Fields/Lines now return plain []String; wrap with g.Slice[T](s)
- Collect() is two-step: .Collect().Slice() / .Collect().MapOrd[K, V]()
- Iter().Counter() replaced by CounterBy(fn)

gotgbot rc.36:
- EditMessageText moved its text argument into EditMessageTextOpts

Bot API 10.2:
- rich messages: new rich and richtext packages covering InputRichMessage,
  all 21 input rich blocks, captions, list items, table cells and the full
  rich text node set; ctx.SendRichMessage, ctx.SendRichMessageDraft and
  EditMessageText().RichMessage()
- ephemeral messages: ReceiverUser/CallbackQuery on every send builder and
  Reply, ctx.EditEphemeralMessage{Text,Caption,Media,ReplyMarkup},
  ctx.DeleteEphemeralMessage, SetMyCommands().AddEphemeralCommand,
  reply.NewEphemeral
- chat join request queries: ctx.AnswerChatJoinRequestQuery and
  ctx.SendChatJoinRequestWebApp, defaulting to the query id of the update
- subscriptions: handlers.Subscription with Active/Canceled/Failed filters
- communities: CommunityChatAdded/CommunityChatRemoved message filters
- input.LinkMedia and input.VoiceNote
- message filters: RichMessage, GuestMessage, GuestBot, AnyEntity,
  AnyEntities, RichEntity, MigrateFrom, MigrateTo, ReplyMarkup, TopicAction
- updates: PurchasedPaidMedia, ChatBoost, RemovedChatBoost, GuestMessage,
  ManagedBot, Subscription
- entity.DateTime, keyboard styles now use gotgbot constants

Also close pre-existing gaps found while auditing: checklist title parse mode
and title entities were unreachable from any builder.

Tests mirror the sources one to one; supplementary test files were folded into
their mirrors. Examples and README updated.

v1.0.2

Toggle v1.0.2's commit message
api v10.0

v1.0.1

Toggle v1.0.1's commit message
readme

v1.0.0

Toggle v1.0.0's commit message
feat: add Telegram Bot API 9.4 support

- Add SetMyProfilePhoto / RemoveMyProfilePhoto bot methods
- Add GetUserProfileAudios ctx method
- Add ChatOwnerLeft / ChatOwnerChanged message handlers
- Add ButtonStyle type with Danger/Success/Primary constants
- Add Style() method to inline keyboard button
- Add tests for all new API 9.4 functionality