timoniq / telegrinder

Modern visionary telegram bot framework
MIT License
31 stars 5 forks source link

bot api types #59

Closed timoniq closed 8 months ago

timoniq commented 9 months ago

telegrinder uses schema at https://github.com/ark0f/tg-bot-api to generate types. its super old and not getting updates :c probably new schema must be applied and *unfortunately* most likely type generator will have to be revised for the found new schema specifications

luwqz1 commented 9 months ago

telegrinder uses schema at https://github.com/ark0f/tg-bot-api to generate types. its super old and not getting updates :c probably new schema must be applied and unfortunately most likely type generator will have to be revised for the found new schema specifications

btw i havent found a single scheme that have full information about enumerations. Therefore there is a proposal that contributors can create enumerations for example in yaml configs.

for example, enumeration ChatMemberStatus:

enum_name: "ChatMemberStatus"
enumerations:
    - administrator
    - banned
    - left
    - member
    - owner
    - restricted
uses:
    - ChatMember.status

I think we need to think more about the syntax for creating enumerations...

timoniq commented 9 months ago

lacking enumerations is not that big of a deal.

this one looks frequently updated: https://github.com/PaulSonOfLars/telegram-bot-api-spec/blob/main/api.json wdyt?

luwqz1 commented 9 months ago

this one looks frequently updated: https://github.com/PaulSonOfLars/telegram-bot-api-spec/blob/main/api.json wdyt?

i think its good