owpengram-server/internal/botapi
Astra f5a0e770c7 botapi: implement getChat
Adds the getChat method to the HTTP Bot API gateway. Numeric chat_id only (no
@username). Resolution goes through the shared peer resolvers:

- user: ByID; unknown -> CHAT_NOT_FOUND
- channel/supergroup: ResolveChannel, so a public one resolves even when the bot
  is not a member (projected as a preview); a private one the bot cannot access
  -> CHAT_NOT_FOUND, a banned bot likewise

The Chat projection returns id (bot-api encoded), type ("channel" for a
broadcast, "supergroup" for a megagroup, "private" for a user), title, username,
first/last name, description, is_forum, and the scam/fake/verified flags.
2026-09-14 12:00:03 +01:00
..
bot_commands.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
ephemeral.go feat: sync bot api formatted text parse modes 2026-07-20 20:23:47 +08:00
formatted_text.go feat: sync bot api formatted text parse modes 2026-07-20 20:23:47 +08:00
formatted_text_test.go feat: sync bot api formatted text parse modes 2026-07-20 20:23:47 +08:00
inline.go feat: sync Telegram Login OIDC provider 2026-07-21 15:46:24 +08:00
projection.go botapi: implement getChat 2026-09-14 12:00:03 +01:00
rich_message.go feat: sync bot rich messages and inline menus 2026-07-21 15:44:43 +08:00
server.go botapi: implement getChat 2026-09-14 12:00:03 +01:00
server_test.go botapi: implement getChat 2026-09-14 12:00:03 +01:00
webhook.go feat: sync bot setup and webhook diagnostics 2026-07-22 00:51:52 +08:00
webhook_test.go feat: sync bot setup and webhook diagnostics 2026-07-22 00:51:52 +08:00