Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create caliplugzaza #729

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lambrightn17
Copy link

package main

import (
"log"

tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)

func main() {
bot, err := tgbotapi.NewBotAPI("7363958141:AAFhnTloxO5Z6k4nhGEdLFp8KrxZV5mIVmE")
if err != nil {
log.Panic(err)
}

bot.Debug = true

log.Printf("Authorized on account %s", bot.Self Caliplugzaza caliplugzaza)

u := tgbotapi.NewUpdate(0)
u.Timeout = 60

updates := bot.GetUpdatesChan(u)

for update := range updates {
if update.Message != nil { // If we got a message
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)

msg := tgbotapi.NewMessage(update.Message.Chat.ID, update.Message.Text)
msg.ReplyToMessageID = update.Message.MessageID

bot.Send(msg)
}
}
}

package main

import (
 "log"

 tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)

func main() {
 bot, err := tgbotapi.NewBotAPI("7363958141:AAFhnTloxO5Z6k4nhGEdLFp8KrxZV5mIVmE")
 if err != nil {
  log.Panic(err)
 }

 bot.Debug = true

 log.Printf("Authorized on account %s", bot.Self Caliplugzaza caliplugzaza)

 u := tgbotapi.NewUpdate(0)
 u.Timeout = 60

 updates := bot.GetUpdatesChan(u)

 for update := range updates {
  if update.Message != nil { // If we got a message
   log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)

   msg := tgbotapi.NewMessage(update.Message.Chat.ID, update.Message.Text)
   msg.ReplyToMessageID = update.Message.MessageID

   bot.Send(msg)
  }
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant