fizruk / telegram-bot-simple

Easy to use library for building Telegram bots in Haskell.
BSD 3-Clause "New" or "Revised" License
107 stars 54 forks source link

Inline mode #157

Closed fetsh-edu closed 1 year ago

fetsh-edu commented 1 year ago
  1. Fixes link in README
  2. Fixes inlineQueryChatType to support sender type (#156)
  3. Removes Null values for Json while adding Json fields with addJsonFields function (#156). Although it doesn't seem like a good idea :) Maybe it's better to handle Maybe somewhere closer to toJSON. For each field independently, somewhere along the lines of [ "normal_field" .= normal_field ] ++ maybe [] (\value -> ["maybe_field" .= value]) maybe_field
fetsh-edu commented 1 year ago

Looks more like a proof of concept than a real pull request :) But with this changes Inline mode works.

fetsh-edu commented 1 year ago

@swamp-agr Haven't seen your last comment, so I've removed InlineChatType in favor of extended ChatType,

swamp-agr commented 1 year ago

Thank you! Please expect release tomorrow.

swamp-agr commented 1 year ago

Please find the release on Hackage https://hackage.haskell.org/package/telegram-bot-api-6.7.1 (Haddock will be ready in a few days)