Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Sep 20, 2023
1 parent 664b58c commit 40cc8ff
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions api/telegram/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import (
"gopkg.in/telebot.v3"
)

const msgStartGroup = "Select a subscription from the list"
const msgStartPrivate = `
* Just type a text to send a simple text message to Awakari.
* Send "/sub name keyword1 keyword2 ..." command to create a basic text matching subscription.
* To customize a message or a subscription, choose a button below.
`
const msgStartGroup = "Here follows the list of your subscriptions. Select any to proceed."

const msgStartPrivate = "* Just type a text to send a simple text message to Awakari.\n" +
"* Send a `/sub name keyword1 keyword2 ...` command to create a basic text matching subscription.\n" +
"* To customize a message or a subscription, choose a button below."

var ErrChatType = errors.New("unsupported chat type (supported options: \"group\", \"private\")")

Expand Down Expand Up @@ -68,6 +67,6 @@ func startGroup(ctx telebot.Context, chatId int64) (err error) {
func startPrivate(ctx telebot.Context, chatId int64) (err error) {
m := &telebot.ReplyMarkup{}
m.Reply(m.Row(btnSubNewCustom, btnMsgNewCustom))
err = ctx.Send(msgStartPrivate, m, telebot.ModeMarkdownV2)
err = ctx.Send(msgStartPrivate, m, telebot.ModeMarkdown)
return
}

0 comments on commit 40cc8ff

Please sign in to comment.