1.0.2 • Published 11 months ago

@kotori-bot/adapter-telegram v1.0.2

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
11 months ago

@kotori-bot/adapter-telegram

Supports for telegram. Create own bot: @BotFather. And if you are in China, you can set proxy to connect telegram api.

Config

export const config = Tsu.Object({
  token: Tsu.String().describe("Bot's token"),
  proxy: Tsu.String().optional().describe('Proxy address (if you are in China)')
})

Supports

Events

  • on_message (fully supported)

Api

  • sendPrivateMsg
  • sendGroupMsg
  • sendChannelMsg

Elements

  • text
  • image
  • voice
  • audio
  • video
  • location

TODO

Support more standard api...

Reference