Skip to content

Conversation

@marcopaganini
Copy link
Contributor

  • Start using the forked version of telegram-bot-api in
    github.com/osprogramadores/telegram-bot-api.
  • Add support for chat_member API messages and uses them to identify
    new users. This shoudl eliminate the problem where new_chat_members
    is not sent to large groups.
  • Some code cleanup to remove the deps on the update object on low
    level API calls.
  • Updated go version to 1.24.

- Start using the forked version of telegram-bot-api in
  github.com/osprogramadores/telegram-bot-api.
- Add support for `chat_member` API messages and uses them to identify
  new users. This shoudl eliminate the problem where `new_chat_members`
  is not sent to large groups.
- Some code cleanup to remove the deps on the `update` object on low
  level API calls.
- Updated go version to 1.24.
log.Printf("Processing new user request for user %q, uid=%d\n", formatName(newUser), newUser.ID)

// Ban bots. Move on to next user.
if newUser.IsBot {
Copy link
Contributor

Choose a reason for hiding this comment

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

Como o isBot é opcional, ele pode quebrar aqui caso não venha nada ou vai falhar e não entrar no if? Sou fraco em Go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Em Go, a maioria dos tipos tem o default , 0, ou false (dependendo do tipo) se não for definido. É um pattern comum ao programar em go: assumir negativo se não estiver definido.

@marcopaganini marcopaganini merged commit bb17544 into OsProgramadores:master Oct 7, 2025
2 checks passed
@marcopaganini marcopaganini deleted the fullfork branch October 7, 2025 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants