all repos — telebonk @ 83c268887bdb324b9c81b1b2182543813a222cf9

reposter from honk to telegram

README.md (view raw)

 1# telebonk
 2
 3(or terebonk, or テレボンク) is a reposter from [honk][1] to telegram.
 4
 5[1]: https://humungus.tedunangst.com/r/honk
 6
 7## usage
 8
 9create bot in telegram to obtain the token.
10note down chat_id of a chat that you want to post honks to (see chat_id section).
11obtain a honk authentication token by using it's api.
12
13install telebonk and run it (replace values in angle brackets with an actual values):
14
15```
16$ go install git.aaoth.xyz/la-ninpre/telebonk@latest
17$ telebonk -bot_token <bot token> -chat_id <chat id> -honk_token <honk token> -honk_url <honk url>
18```
19
20### chat_id
21
22telegram `chat_id` is an integer. you can get it from a web version of telegram or by
23using the [`getUpdates` method of a telegram bot][2] and sending a message to a bot.
24for channels you must add `-100` to the id you got.
25
26[2]: https://core.telegram.org/bots/api#getupdates
27
28## bugs
29
30yes.
31
32##  licence
33
34telebonk is distributed under the terms of ISC licence (see `LICENCE`).