amino-net-group / amino.net Goto Github PK
View Code? Open in Web Editor NEWAn unofficial C# wrapper around Aminos REST API based on Amino.py!
License: MIT License
An unofficial C# wrapper around Aminos REST API based on Amino.py!
License: MIT License
SubClient.send_file_message is trying to add instead of replacing "type" if the user tries to upload an audio file
It seems there is an issue in the way the JSON for sending audios is structured, it currently encodes the file bytes to base64 but then decodes them back right after
likely due to an oversight, SubClient.generate_invite_code returns Invalid Request, as well as not returning an Invite object even if it was working
There is a known issue in the send_message bundle (both for client and subclient), where it will return Invalid Request for no apparent reason, this will likely be fixed in a few updates
Client.register_google has an issue with creating an account or logging into one, the secret type is set to facebook even tho it should be 32
#I saved message.content in a variable text and i want to use text outside the function i have tried to access the the function the subclient but onmessage even just went mad giving me these errors
##here is what i wanted to do first to make it easier on my self -->
static void Main(string[] args, Amino.Client client, Amino.SubClient ndcClient)
{
client.onMessage += onMessageEvent;
// Wait for user input to close the application
Console.WriteLine("Press Enter to exit.");
Console.ReadLine();
}
static void onMessageEvent(Amino.Objects.Message message,Amino.SubClient ndcClinent)
{
var text = message.content;
Console.WriteLine(message.content);
if ( message.content == "hey")
{
ndcClient.start_chat("907b17a7-5239-417f-9fd6-16cb309dbe32", "hey");
ndcClient.send_message(chatId: message.chatId.ToString(), message: "heyhey");
}
}
Main(args, client,ndcClient);
##Error
No overload for 'onMessageEvent' matches delegate 'Action<Message>'
A static local function cannot contain a reference to 'this' or 'base'
#here what im trying to do as a solution but i have a lack of knowledge in c#
static void Main(string[] args, Amino.Client client, Amino.SubClient ndcClient)
{
client.onMessage += onMessageEvent;
// Wait for user input to close the application
Console.WriteLine("Press Enter to exit.");
Console.ReadLine();
}
static void onMessageEvent(Amino.Objects.Message message)
{
var text = message.content;
Console.WriteLine(message.content);
}
Main(args, client,ndcClient);
if ( text== "hey")
{
ndcClient.start_chat("907b17a7-5239-417f-9fd6-16cb309dbe32", "hey");
ndcClient.send_message(chatId: chatId.ToString(), message: "heyhey");
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.