all repos — telebonk @ main

reposter from honk to telegram

29015f15
readme: rename go module root
la-ninpre aaoth@aaoth.xyz
Sat, 02 Dec 2023 13:06:35 +0300
4f479f90
rename go module root
la-ninpre aaoth@aaoth.xyz
Sat, 02 Dec 2023 13:06:12 +0300
cd0118a6
pass honk token in a header
la-ninpre leobrekalini@gmail.com
Sat, 12 Nov 2022 19:46:58 +0300

telebonk

(or terebonk, or テレボンク) is a reposter from honk to telegram.

usage

create bot in telegram to obtain the token. note down chat_id of a chat that you want to post honks to (see chat_id section). obtain a honk authentication token by using it’s api.

install telebonk and run it (replace values in angle brackets with an actual values):

$ go install aaoth.xyz/la-ninpre/telebonk@latest
$ telebonk -bot_token <bot token> -chat_id <chat id> -honk_token <honk token> -honk_url <honk url>

chat_id

telegram chat_id is an integer. you can get it from a web version of telegram or by using the getUpdates method of a telegram bot and sending a message to a bot. for channels you must add -100 to the id you got.

bugs

yes.

licence

telebonk is distributed under the terms of ISC licence (see LICENCE).

clone
git clone https://git.aaoth.xyz/telebonk