41 Replies
error
Is telegram.cs your code file?
Yes.
Well what's line 93
I bet it has square brackets
It's going to be the messageid line, isn't it?
The line numbers don't match up
But it's probably the messageid line. Maybe there is no : in the string
But the error msg both have to do with Callbackdata
maybe?
I can try this 1 second
it printed in cmd prompt
but nothing printed.
now its just loading
What are you confused about?
it should be printing right>
Printing what?
"ping"
because callback?
Where are you sending ping in callback?
You exit early
Nono
I do /ping in telegram
it shows the button
when i click the button nothing happens
just shows the callback in cmd prompt
Yeah, because you exit early
not printing in telegram
why so
Thats what 'return' does
but this is the command?
so do return after?
That obviously happens, correct?
Sure
So...
The problem is not there
Like you just changed some code in the call back so it does nothing now
well theres no error?
And you're asking why the call back doesn't do anything?
it just prints
ping
pong
[TELEGRAM] CallbackQuery: ping?
instead of printing ping in telegram
Why would it send anything to telegram client
You don't call anything to make it
Telegram.client.SendMessage(update.Message.Chat.Id, ":robot: Bot is online", replyMarkup: keyboard);
so what would it be than to send messageThat one is already sent
You've shown it
AH
[TelegramCommand("BUTTON:Ping", false, false)]
public static async Task Ping(Update update, List<string> args) => Console.WriteLine("[ESTATE] " + await Estate.TriggerEvent("Ping", args[0]));
nvm
@HowNiceOfYou my guy
You seem to actually have a brain in that head of yours judging by your questions and everything, but self-botting is against Discord's Terms of Service
Please disable it if you wish to participate in this server.
I'll check again in a day and if not, you will be removed.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.o
tried this but it only gives a callback to console instead of sending to the bot
y