telebot/layout/example.yml

54 lines
843 B
YAML
Raw Normal View History

2020-09-05 22:29:24 +00:00
settings:
token_env: TOKEN
parse_mode: html
long_poller: {}
config:
str: string
num: 123
dur: 10m
buttons:
2020-09-26 15:48:49 +00:00
# Shortened reply buttons
help: Help
settings: Settings
# Extended reply button
contact:
text: Send a contact
request_contact: true
# Inline button
stop:
unique: stop
text: Stop
data: '{{.}}'
# Callback data
pay:
unique: pay
text: Pay
data:
- '{{.UserID}}'
- '{{.Amount}}'
- '{{.Currency}}'
2020-09-05 22:29:24 +00:00
markups:
2020-09-26 15:48:49 +00:00
reply_shortened:
- [ help ]
- [ settings ]
reply_extended:
2020-09-05 22:29:24 +00:00
keyboard:
2020-09-26 15:48:49 +00:00
- [ contact ]
2020-09-05 22:29:24 +00:00
one_time_keyboard: true
inline:
2020-09-26 15:48:49 +00:00
- [ stop ]
results:
article:
type: article
id: '{{ .ID }}'
title: '{{ .Title }}'
description: '{{ .Description }}'
message_text: '{{ .Content }}'
thumb_url: '{{ .PreviewURL }}'