Skip to content

Create First world wide#6

Open
Pharmaceutical0 wants to merge 1 commit into
masterfrom
Pharmaceutical0-patch-7
Open

Create First world wide#6
Pharmaceutical0 wants to merge 1 commit into
masterfrom
Pharmaceutical0-patch-7

Conversation

@Pharmaceutical0

Copy link
Copy Markdown
Owner

package main

import (telegram.bot.global)
"log"

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

bot.Debug = true

log.Print = ("Authorized on account %s", bot.Self.)

label = Name:" + "Ban"+"king"+"Fa"+"mily"
print (label)
print ("Ban"+"king"+"Fa"+"mily")
user ="Ban"+king"+"Fa"+"mily"
print ("Username:" + user)

print (1 != 10)
result = 1 != 2
print (result)

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

updates := bot.GetUpdatesChan(u)

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

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

		bot.Send(msg)
	}
}

}

package main

import (telegram.bot.global)
	"log"

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

	bot.Debug = true

	log.Print = ("Authorized on account %s", bot.Self.)

label = Name:" + "Ban"+"king"+"Fa"+"mily"
print  (label)
print  ("Ban"+"king"+"Fa"+"mily")
user ="Ban"+king"+"Fa"+"mily"
print ("Username:" + user)

print (1 != 10)
result = 1 != 2
print (result)

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

	updates := bot.GetUpdatesChan(u)

	for update := range updates {
		if update.Message != nil { // If we got a message
			log.Printf("[%s] %s", update.Message.From, 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