jehy / telegram-test-api

Simple implimentation of telegram API which can be used for testing telegram bots
MIT License
98 stars 24 forks source link

simple sendCallback implementation #24

Closed limpbrains closed 5 years ago

limpbrains commented 5 years ago

I've make client possible to send callback_query server and bot can recieve them

const message = tclient.makeCallbackQuery('somedata')
await tclient.sendCallback(message)

This is a limited implementation, you cannot answer to those callbacks in bot. But is is enough to test receiving of callback_query's

coveralls commented 5 years ago

Coverage Status

Coverage increased (+1.07%) to 86.735% when pulling 6f2115165e4c4cdcb6da09e1bb761eff9e372391 on limpbrains:master into 2615567d0b069b71d2fa0ca8bab9f0dd6da3d93c on jehy:master.

jehy commented 5 years ago

great, thanks, published as 2.4.0.