You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
719 B

  1. telegram_callback = {
  2. "type": "object",
  3. "properties": {
  4. "message": {
  5. "type": "object",
  6. "properties": {
  7. "chat": {
  8. "type": "object",
  9. "properties": {
  10. "id": {"type": "number"},
  11. "type": {"enum": ["group", "private", "supergroup"]},
  12. "title": {"type": "string"},
  13. "username": {"type": "string"},
  14. },
  15. "required": ["id", "type"],
  16. },
  17. "text": {"type": "string"},
  18. },
  19. "required": ["chat", "text"],
  20. }
  21. },
  22. "required": ["message"],
  23. }