telegram/client/client.go

19 lines
267 B
Go

package client
import "fmt"
type Client struct {
Messages []string
}
func NewClient() *Client {
return &Client{
Messages: []string{},
}
}
func (c *Client) SendMessage(msg string) {
c.Messages = append(c.Messages, msg)
fmt.Println("saved message: ", msg)
}